logo laravel

Basic Laravel 5.7 CRUD API using Fractal and Transformers

In this basic tutorial, we will create an API to create read update and delete (CRUD) a post using Laravel Transformers. Create Posts Table and User Controller Create Posts Table Create posts table through migration :

Open the newly migration file and add some attributes :

Run the migration :

Create UserController Read more about Basic Laravel 5.7 CRUD API using Fractal and Transformers[…]

Yii2 Framework

Yii2 Tips 16 : Membuat API Sederhana

Membuat API sederhana di Yii2 sangat mudah, di kasus ini kita akan mengambil data dari database dan menampilkannya di browser dalam bentuk JSON. API sederhana ini tidak menggunakan autentikasi, sehingga bisa langsung diambil oleh aplikasi lain. Langkah 1 : Menyiapkan Tabel Tabel berisi dua kolom, yaitu id dan score dari pemain. Langkah 2 : Buat Read more about Yii2 Tips 16 : Membuat API Sederhana[…]