user()); foreach ($guards as $guard) { if (Auth::guard($guard)->check()) { return redirect('/'); } } return $next($request); } }