Doesn't heroku proxy your SSL traffic so that all you get at your server is http ?
I think you need to look at trusted proxies?
https://laravel.com/docs/5.5/requests#configuring-trusted-proxies
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I followed the discussion https://laracasts.com/discuss/channels/laravel/force-ssl-secure-routes-in-laravel-52?page=1 to force SSL secure routes.
From what I've seen it works. However, I'm getting ERR_TOO_MANY_REDIRECTS when I deploy my app to Heroku.
I'm using the free TLS certificate (Let's encrypt) from Heroku. And also, I'm using wwwizer to redirect my naked domain to www.
My Laravel version is 5.3
Please or to participate in this conversation.