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