Support the ongoing development of Laravel.io →
EveoHacker

EveoHacker

Joined 29 Apr 2016

Statistics

Threads 0
Replies 1
Solutions 0
Articles 0

eveohacker has not posted any threads yet

replied 10 years ago

How to get assets via either HTTPS or HTTP automatically, depending on how the page was served?

Try putting HTTPS=on or HTTPS=off in your .env file. No other editing should be required.

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.