Fix getMissingAttributes(), wasnt evaluating the different objects correctly

This commit is contained in:
Deon George 2025-02-02 11:53:36 +11:00
parent 340ab435d6
commit 0702e6a258

View File

@ -290,7 +290,7 @@ class Entry extends Model
public function getMissingAttributes(): Collection
{
return $this->getAvailableAttributes()
->diff($this->getVisibleAttributes());
->filter(fn($a)=>(! $this->getVisibleAttributes()->contains(fn($b)=>($a->name === $b->name))));
}
/**