Andrew 2 months ago
parent
commit
a08f2c42ce
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      app/Providers/AppServiceProvider.php

+ 3
- 2
app/Providers/AppServiceProvider.php View File

@@ -22,8 +22,9 @@ class AppServiceProvider extends ServiceProvider
22 22
      */
23 23
     public function boot(): void
24 24
     {
25
-        URL::forceScheme('https');
26
-
25
+        if (App::environment('production')) {
26
+            URL::forceScheme('https');
27
+        }
27 28
         TranslatableTabs::configureUsing(function (TranslatableTabs $component) {
28 29
             $component
29 30
                 // locales labels