'date', ]; // Un domaine est considéré "proche d'expiration" si l'échéance est dans moins de 30 jours public function getEstProcheEcheanceAttribute(): bool { if (!$this->date_echeance) { return false; } return Carbon::now()->diffInDays($this->date_echeance, false) <= 30; } public function getEstEnRetardAttribute(): bool { if (!$this->date_echeance) { return false; } return Carbon::now()->isAfter($this->date_echeance); } }