Andrew 2 달 전
부모
커밋
a08f2c42ce
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3
    2
      app/Providers/AppServiceProvider.php

+ 3
- 2
app/Providers/AppServiceProvider.php 파일 보기

@@ -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