Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

marcoacm's avatar

Loading assets and other resources

Hello.

I developed a simple laravel application and I am trying to deploy on a server with SSL certificate. Assets and forms urls are giving problems.

What is the best way to force all requests to use https only when in production environment? I don't want to hard code anything, so that my code keeps working on my dev environment.

Any pointers appreciated...

Thanks

0 likes
1 reply

Please or to participate in this conversation.