force https

This commit is contained in:
2026-02-21 16:21:29 +07:00
parent c19e39fe5e
commit d787a36480
+4
View File
@@ -22,6 +22,10 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot(): void public function boot(): void
{ {
if (config('app.env') === 'production') {
URL::forceScheme('https');
}
Gate::define('super-admin', function (User $user) { Gate::define('super-admin', function (User $user) {
return $user->role === Role::SUPER_ADMIN; return $user->role === Role::SUPER_ADMIN;
}); });