softdeletes für packages eingerichtet

This commit is contained in:
Codex Agent
2025-11-03 12:23:48 +01:00
parent 20eda6b4f8
commit c0c1d31385
12 changed files with 196 additions and 12 deletions

View File

@@ -222,7 +222,7 @@ class Tenant extends Model
public function getActiveResellerPackage(): ?TenantPackage
{
return $this->activeResellerPackage()
->whereHas('package', fn ($query) => $query->where('type', 'reseller'))
->whereHas('package', fn ($query) => $query->withTrashed()->where('type', 'reseller'))
->where('active', true)
->orderByDesc('expires_at')
->first();