From c0f8aca54d888b76dd7ca6b76f6f678b5567f938 Mon Sep 17 00:00:00 2001 From: MightyPork Date: Mon, 9 Jul 2018 07:08:47 +0200 Subject: [PATCH] added forcessl in prod --- app/Providers/AppServiceProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 35471f6..3dc7939 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -13,7 +13,9 @@ class AppServiceProvider extends ServiceProvider */ public function boot() { - // + if($this->app->environment('production')) { + \URL::forceScheme('https'); + } } /**