multiple middleware laravel
snippet in php

multiple middleware laravel

user1161

Route::group(['middleware' => ['auth', 'web']], function() {
  // uses 'auth' middleware plus all middleware from $middlewareGroups['web']
  Route::resource('blog','BlogController'); //Make a CRUD controller
});

multiple middleware laravel

user6111

Route::group(['middleware' => 'auth:admin,web'], function () {
   Route::resource('blog','BlogController'); //Make a CRUD controller
});

laravel route multiple middleware

user5138

Route::get('/', function () {
//
})->middleware('first', 'second');