resource router laravel code example
Example 1: Route::resource
php artisan make:controller PhotoController --resource
Example 2: Route::resource
Route::resource('photos', PhotoController::class)->only([
'index', 'show'
]);
Route::resource('photos', PhotoController::class)->except([
'create', 'store', 'update', 'destroy'
]);