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