Max Kostinevich

Consulting & Web-Development

How to force SSL/HTTPS in Laravel app

A quick tip how to force your Laravel app to use HTTPS/SSL. 

Just add \URL::forceScheme('https') to the boot() method of the AppServiceProvider.php as shown below:

Comments? Shoot me a tweet!

Have a project in mind?

Let's talk!

‚úČ Subscribe

Subscribe for newsletter, software development tips and more.