1]; protected function casts(): array { return ['blocked' => 'boolean', 'next_review' => 'date:Y-m-d']; } public function eligible(): bool { return $this->status === 'active' && ! $this->blocked && $this->next_review >= today(); } /** @return HasMany */ public function documents(): HasMany { return $this->hasMany(SupplierDocument::class); } }