toyi/force-https
Composer 安装命令:
composer require toyi/force-https
包简介
Force Https middleware for Laravel apps
README 文档
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.
统计信息
- 总下载量: 1.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-27