Membuat RESTful menggunakan Framework Laravel

Teten Nugraha
Jun 25 · 3 min read
Photo by Markus Spiske on Unsplash
composer create-project --prefer-dist laravel/laravel simple-laravel-rest
php artisan serve
php artisan make:model Products -m
php artisan migrate
php artisan make:controller BaseController
php artisan make:controller ProductController
Route::resource('products', 'ProductController');
localhost:8000/api/products
localhost:8000/api/products

Hackflix

Tempat Belajar Coding