Components\Middleware\Auth::execute PHP Метод

execute() публичный Метод

public execute ( $request, callable $next )
$next callable
    public function execute($request, callable $next)
    {
        if (auth()->check() === false) {
            flash()->session()->error('Please login to access this page.');
            redirect(url(route('showLoginForm'), ['ref' => url()->current()]));
        }
        return $next($request);
    }