user(); if ($user) { if ($user->banned_at !== null) { return redirect()->route('banned'); } } return $next($request); } }