This commit is contained in:
ct
2025-07-16 12:38:06 +08:00
parent d4b69df538
commit d4c5fb5589
25 changed files with 249 additions and 86 deletions

View File

@@ -30,6 +30,11 @@ public function user(): BelongsTo
return $this->belongsTo(User::class);
}
public function isAnonymous(): bool
{
return is_null($this->user_id);
}
public function isExpired(): bool
{
return $this->expires_at->isPast();