diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 6aacefbf..621e43f0 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')); + } + } /**