How can I get the IP of an HTTP request in a Laravel Vapor application?
问题 I recently moved a Laravel app from a server to Vapor. This app relies on logging request IP addresses using Request::ip() , but since switching to Vapor, all IPs are logged as 127.0.0.1. I have looked over the Trusted Proxy docs at https://laravel.com/docs/5.6/requests#configuring-trusted-proxies but we do not have a load balancer set up, so this solution does not appear relevant. I suspect this IP address is coming from the Amazon API Gateway. How do we get the actual client IP of incoming