force https on docker

This commit is contained in:
ludo
2024-02-07 20:31:51 +01:00
parent 5a400aaedd
commit 8c6e10fb3b

View File

@@ -11,6 +11,9 @@ class AppServiceProvider extends ServiceProvider
{ {
public function boot() public function boot()
{ {
if(config('app.env') === 'production') {
\URL::forceScheme('https');
}
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
View::composer('Shop.layout.layout', LayoutComposer::class); View::composer('Shop.layout.layout', LayoutComposer::class);
} }