user()?->isAdmin()) { return redirect()->route('dashboard'); } return $next($request); } }