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')); + } + } /**