fix(api-tokens): persist expiration warning state

Track when expiration warnings are sent on personal access tokens so repeated job runs or cache flushes do not send duplicate notifications.
This commit is contained in:
Andras Bacsai committed 2026-05-13 10:11:40 +02:00
1 parent f098895abf
commit 3911a0305c
4 files changed
+94 -12

No files matched your search

+8
View File
@@ -11,6 +11,14 @@ class PersonalAccessToken extends SanctumPersonalAccessToken
'token',
'abilities',
'expires_at',
'api_token_expiration_warning_sent_at',
'team_id',
];
protected function casts(): array
{
return [
'api_token_expiration_warning_sent_at' => 'datetime',
];
}
}