public function handle($request, Closure $next)
    {
        if ($this->maintenance->isDownMode() && !$this->maintenance->checkAllowedIp($this->getIp())) {
            if (app()['view']->exists('errors.503')) {
                return new Response(app()['view']->make('errors.503'), 503);
            }

            return app()->abort(503, 'The application is down for maintenance.');
        }

        return $next($request);
    }