laravel route only and except
Route::resource('subproperty','SubpropertyController', ['except'=>['create','edit']])
3.33
3
use App\Http\Controllers\PhotoController;
Route::resource('photos', PhotoController::class)->only([
'index', 'show'
]);
Route::resource('photos', PhotoController::class)->except([
'create', 'store', 'update', 'destroy'
]);
Thank you!
3
0
4.14
7
Route::resource('videos', 'VideoController')->except('show');
Thank you!
7
0
Are there any code examples left?
New code examples in category Other