guest()) { return redirect('/login')->withErrors(["You must be loged in to access this page."]); } return $next($request); } }