Route::group(['middleware' => 'AppHttpMiddlewareAdminMiddleware'], function() { Route::get ('/admin', ['uses' => 'AdminController@index', 'before' => 'admin']); });