Resource Controllers: Partial Resource Routes
Route::resource('photos', 'PhotoController')->only([ 'index', 'show' ]); Route::resource('photos', 'PhotoController')->except([ 'create', 'store', 'update', 'destroy' ]); When declaring a resource route, you may specify a subset of actions the controller should handle instead of the full set of default actions.
Related concepts
→
Partial Resource Routes
Semantic portal