Install via the composer
Either run the following command in the root directory of your project:
composer require otifsolutions/laravel-forcessl
add this line in your .env file to enable forced ssl
FORCE_SSL = true
This pakage is use to make the project to work for ssl.