From fb73f5ca2468873ccd1ef781946acadb85fa169a Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 15 Oct 2018 09:03:54 +0100 Subject: [PATCH] Attempt to allow changing root URL --- app/Providers/AppServiceProvider.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index bb66cd39..da76af6f 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -60,6 +60,10 @@ class AppServiceProvider extends ServiceProvider \URL::forceScheme('https'); } + if(env('APP_URL') != 'http://localhost') { + \URL::forceRootUrl(env('APP_URL')); + } + } /**