laravel-vapor

How can I get the IP of an HTTP request in a Laravel Vapor application?

让人想犯罪 __ 提交于 2020-12-29 07:51:47
问题 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

How can I get the IP of an HTTP request in a Laravel Vapor application?

末鹿安然 提交于 2020-12-29 07:51:25
问题 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

Authentication failed on Laravel Vapor CLI

纵饮孤独 提交于 2020-05-28 06:49:33
问题 I just installed Laravel Vapor today and am so excited to get started, but I've run into a wall with authentication from my Mac (using iTerm). I enter vapor login , then follow the prompts for Email Address: and Password: ... and get Authentication failed. every time. I have triple-checked my email address, very carefully entered the password, checked caps lock is not on, and changed my password 3 times via the website and re-entered to see if it changed anything. I don't know what else I can

Authentication failed on Laravel Vapor CLI

三世轮回 提交于 2020-05-28 06:49:30
问题 I just installed Laravel Vapor today and am so excited to get started, but I've run into a wall with authentication from my Mac (using iTerm). I enter vapor login , then follow the prompts for Email Address: and Password: ... and get Authentication failed. every time. I have triple-checked my email address, very carefully entered the password, checked caps lock is not on, and changed my password 3 times via the website and re-entered to see if it changed anything. I don't know what else I can