force https

This commit is contained in:
2026-04-23 15:32:50 +07:00
parent ab51c6f5d8
commit ad3a05fbf2
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class AppServiceProvider extends ServiceProvider
); );
}); });
if (config('app.env') === 'production') { if (config('app.env') === 'production' || config('app.force_https')) {
URL::forceScheme('https'); URL::forceScheme('https');
} }
+1
View File
@@ -123,4 +123,5 @@ return [
'store' => env('APP_MAINTENANCE_STORE', 'database'), 'store' => env('APP_MAINTENANCE_STORE', 'database'),
], ],
'force_https' => env('FORCE_HTTPS', false),
]; ];