setTrustedProxies([$request->getClientIp()], $this->getTrustedHeaderNames()); $this->setTrustedProxyIpAddresses($request); return $next($request); } }