Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel route only and except

use AppHttpControllersPhotoController;

Route::resource('photos', PhotoController::class)->only([
    'index', 'show'
]);

Route::resource('photos', PhotoController::class)->except([
    'create', 'store', 'update', 'destroy'
]);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #route
ADD COMMENT
Topic
Name
6+7 =