authManager->guard($guard)->check()) { return redirect()->route('index'); } return $next($request); } }