force https

This commit is contained in:
Irwan Cahyono 2026-02-21 16:21:29 +07:00
parent c19e39fe5e
commit d787a36480

View File

@ -22,6 +22,10 @@ public function register(): void
*/
public function boot(): void
{
if (config('app.env') === 'production') {
URL::forceScheme('https');
}
Gate::define('super-admin', function (User $user) {
return $user->role === Role::SUPER_ADMIN;
});