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
+2 -2
View File
@@ -34,9 +34,9 @@ class AppServiceProvider extends ServiceProvider
); );
}); });
if (config('app.env') === 'production') { if (config('app.env') === 'production' || config('app.force_https')) {
URL::forceScheme('https'); URL::forceScheme('https');
} }
Gate::define('viewApiDocs', function (User $user) { Gate::define('viewApiDocs', function (User $user) {
return $user->role === Role::SUPER_ADMIN; return $user->role === Role::SUPER_ADMIN;
+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),
]; ];