owenmelbz/https-enforcement
Composer 安装命令:
composer require owenmelbz/https-enforcement
包简介
Laravel 5.x middleware to enforce https redirection for your app.
README 文档
README
An automatic piece of middleware for Laravel 5.x, which will redirect users accessing non https urls, to the secure equivalent unless specified in the ignore list
Usage
1- Install via composer composer require owenmelbz/https-enforcement
2- Register the service provider - typically done inside the app.php providers array e.g OwenMelbz\HttpsEnforcement\HttpsEnforcementServiceProvider::class
3- Add ENFORCE_HTTPS=true to your application environment config e.g .env
4- Enjoy your stress free architecture agnostic redirects
Why?
Too often we've wasted time configuring SSL redirection, with proxy systems like CloudFlare, with apache development machines and nginx production, this removes all the headache and can simply be turned off and on at a whim.
统计信息
- 总下载量: 2.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 26
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-25