'App\Http\Middleware\AuthMiddleware', 'auth.basic' => 'App\Http\Middleware\BasicAuthMiddleware', 'csrf' => 'App\Http\Middleware\CsrfMiddleware', 'guest' => 'App\Http\Middleware\GuestMiddleware', ]; /** * The application's middleware stack. * * @var array */ protected $stack = [ 'App\Http\Middleware\MaintenanceMiddleware', 'Illuminate\Cookie\Middleware\Guard', 'Illuminate\Cookie\Middleware\Queue', 'Illuminate\Session\Middleware\Reader', 'Illuminate\Session\Middleware\Writer', 'Illuminate\View\Middleware\ErrorBinder', 'App\Http\Middleware\CsrfMiddleware', ]; /** * Build the application stack based on the provider properties. * * @return void */ public function stack() { $this->app->stack(function(Stack $stack, Router $router) { return $stack ->middleware($this->stack)->then(function($request) use ($router) { return $router->dispatch($request); }); }); } }