php artisan make:controller PhotoController --resource --model=Photo
Route::resource('photos', PhotoController::class);
php artisan make:controller PhotoController --resource --model=Photo
php artisan make:controller RequestRevisionController --resource
php artisan make:resource ResourceName
Resource Controller:This controller will create all CRUD methods
php artisan make:controller nameOfController --resource
php artisan make:controller User/AdminController -r
php artisan make:controller NameController --resource
Route::get('payments/create/{id}', [
'as' => 'payments.create',
'uses' => 'PaymentsController@create'
]);
Route::resource('payments', 'PaymentsController', ['except' => 'create']);
php artisan make:model -a -r modelName