不能使用config 因为beike service provider 比app service provider 加载更晚

This commit is contained in:
Edward Yang 2023-02-22 21:29:41 +08:00
parent 107a7371b3
commit 9ddf91578b
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
if (config('beike.force_url_https', false)) { if (env('APP_FORCE_HTTPS', false)) {
URL::forceScheme('https'); URL::forceScheme('https');
} }
} }