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.

Resource Controllers: Partial Resource Routes — Structure map

Clickable & Draggable!

Resource Controllers: Partial Resource Routes — Related pages: