February 28, 2018

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:

© 2023 [maxico.dev] — All rights reserved.