Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

multiple middleware laravel

Route::group(['middleware' => ['auth', 'web']], function() {
  // uses 'auth' middleware plus all middleware from $middlewareGroups['web']
  Route::resource('blog','BlogController'); //Make a CRUD controller
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #middleware #laravel
ADD COMMENT
Topic
Name
9+2 =