不能使用config 因为beike service provider 比app service provider 加载更晚
This commit is contained in:
parent
107a7371b3
commit
9ddf91578b
|
|
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue