[laravel] Steps of create api of model
php artisan make:model Blog -mcr edit migration file php artisan migrate edit "routes/api.php" Route::resource('blogs', BlogController::class); edit Models/Blog.php protected $fillable = [ 'title', 'body', ]; edit Controller (index,store,show,update,destroy)