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