Answers for "laravel resource controller command"

PHP
1

make controller laravel 8 with resource

php artisan make:controller PhotoController --resource --model=Photo
Route::resource('photos', PhotoController::class);
Posted by: Guest on October-17-2021
0

artisan command to add resources to controller

php artisan make:controller NameofController --resource
// It will create the controller with all methods. laravel version 5.2+
Posted by: Guest on March-27-2020

Code answers related to "laravel resource controller command"

Browse Popular Code Answers by Language