Fix getMissingAttributes(), wasnt evaluating the different objects correctly

This commit is contained in:
Deon George 2025-02-02 11:53:36 +11:00
parent b2335e26f2
commit 1f1db14ae9

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))));
}
/**