laravel artisan controler code example
Example 1: Route::resource
php artisan make:controller PhotoController --resource
Example 2: Route::resource
Route::resource('photos', PhotoController::class);
php artisan make:controller PhotoController --resource
Route::resource('photos', PhotoController::class);