1Route::resources([
2 'photos' => 'PhotoController',
3 'posts' => 'PostController',
4]);
1Route::resource('photos', PhotoController::class)->only([
2 'index', 'show'
3]);
4
5Route::resource('photos', PhotoController::class)->except([
6 'create', 'store', 'update', 'destroy'
7]);