ip() is correct via the global trustProxies (prod). */ class BlockBannedIp { public function __construct(private BruteforceGuard $guard) {} public function handle(Request $request, Closure $next): Response { if ($this->guard->enabled() && Auth::guest() && $this->guard->isBanned((string) $request->ip())) { return response()->view('errors.blocked', [], 403); } return $next($request); } }