lucasvscn/laravel-force-https

此包已废弃,不再维护。未建议替代包。

强制每个请求都使用 https 的补丁。

5.3 2017-05-12 14:44 UTC

This package is auto-updated.

Last update: 2020-10-06 22:29:28 UTC


README

处理特定环境(导致从端口80(http)到443(https)的重定向失败)的解决方案。

启用此包后,在“生产”环境中,应用程序应强制所有URL使用 https。

安装

config/app.php 中注册 ServiceProvider

'providers' => [

    // ...
    LucasVscn\ForceHttps\ServiceProvider::class,
];