use Illuminate\Http\Request; $request = Request::createFromGlobals(); $request->setTrustedProxies(['10.0.0.10', '192.168.0.10']); // Access client IP address via getClientIp method $ip = $request->getClientIp();In the above example, we are creating a Request object from the global variables and setting the trusted proxy servers with IP addresses `10.0.0.10` and `192.168.0.10`. Then we are accessing the client IP address using the `getClientIp` method. The `Illuminate\Http\Request` class is a part of Laravel's `illuminate/http` package.