I use this package which I believe now is included in new Laravel:
https://github.com/fideloper/TrustedProxy
I'm not too sure if it will do the trick for maintenance mode.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm trying to set my own ip so that I can access my app while they are in maintenance mode. My app is running on multiple servers behind a digital ocean load balancer and the php artisan down --allow=[ip] doesn't work properly as it doesn't see the original IP for the client.
Anyone knows how to fix this?
Please or to participate in this conversation.