blixx / forcehttps
强制您的 Laravel 项目使用 HTTPS
dev-master
2019-05-10 09:51 UTC
Requires
- laravel/framework: ^5.4
This package is auto-updated.
Last update: 2024-09-10 21:39:16 UTC
README
此软件包正在开发中
安装说明
步骤 1: 安装软件包
composer require blixx/forcehttps
步骤 2: 在 app/Http/Kernel.php 中添加 Web 中间件
protected $middlewareGroups = [
'web' => [
...
\Blixx\ForceHttps\Middleware\ForceHttpsMiddleware::class,
],
步骤 3: 在 .env 文件中将您的环境设置为 live
此软件包仅在 live 或 staging 模式下运行,因此请正确设置您的 live 环境
APP_ENV=live