Provide a simple and convenient way to force Https.
Install via composer
composer require toyi/force-https
Note! This and next step are optional if you use laravel>=5.5 with package auto discovery feature.
Add service provider to config/app.php
in providers
section
Toyi\ForceHttps\ServiceProvider::class,
php artisan vendor:publish --provider="Toyi\ForceHttps\ServiceProvider" --tag="config"
Add the Toyi\ForceHttps\ForceHttps::class
middleware in the web middleware group.
The FORCE_HTTPS
boolean env variable can be used to activate or deactivate redirections.
If you discover any security related issues, please email instead of using the issue tracker.
This package is bootstrapped with the help of melihovv/laravel-package-generator.