From b46b9517c29b96f8d61e9cf54b5647e08801f211 Mon Sep 17 00:00:00 2001 From: Abd Kayali <42893104+AbdKayali3@users.noreply.github.com> Date: Sun, 28 Apr 2024 15:40:42 +0300 Subject: [PATCH] Remove HTTPS enforcement for local environments in AppServiceProvider.php Adjusted conditional logic to enforce HTTPS scheme only for non-local environments. --- stubs/AppServiceProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stubs/AppServiceProvider.php b/stubs/AppServiceProvider.php index 6da7312..9185db3 100644 --- a/stubs/AppServiceProvider.php +++ b/stubs/AppServiceProvider.php @@ -17,7 +17,9 @@ public function boot(): void Number::useLocale('en'); URL::defaults(['domain' => '']); - URL::forceScheme('https'); + if (!$this->app->isLocal()) { + URL::forceScheme('https'); + } Model::unguard(); } }