Fix getMissingAttributes(), wasnt evaluating the different objects correctly
This commit is contained in:
parent
2ad0ddd764
commit
7322a13c0c
@ -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))));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user