check()) { if ($guard === 'admin') { return redirect('/admin'); } return redirect('/home'); } return $next($request); } }