Check out this article that documents the config https://laravel-news.com/trusted-proxy
Jul 20, 2020
2
Level 2
Where should I configure Trusted Proxies?
Hello there!
I am hessitant about where should I configure the trusted proxies for my Laravel 7.x application, should I do it on the vendor/fideloper/proxy/config/trustedproxy.php file (that looks precisely as a config file) or should I do it directly on the app/Http/Middleware/TrustedProxies.php?
Surely this is a dumb question but I cannot seem to find a clear answer about where should I change this configuration.
Please or to participate in this conversation.