toyi / force-https
Force Https middleware for Laravel apps
Installs: 1 191
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/toyi/force-https
Requires
- php: >=7.2
- illuminate/support: ~5.8.0|^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ~3.8.0
- phpunit/phpunit: ^7.0|^8.0|^9.0
README
Provide a simple and convenient way to force Https.
Installation
Install via composer
composer require toyi/force-https
Register Service Provider
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,
Publish Configuration File
php artisan vendor:publish --provider="Toyi\ForceHttps\ServiceProvider" --tag="config"
Usage
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.
Security
If you discover any security related issues, please email instead of using the issue tracker.
Credits
This package is bootstrapped with the help of melihovv/laravel-package-generator.