when to use controller laravel 8 code example
Example 1: Route::resource
Route::resource('photos', PhotoController::class);
Example 2: laravel make:action
composer require lorisleiva/laravel-actions
Route::resource('photos', PhotoController::class);
composer require lorisleiva/laravel-actions