Fix getMissingAttributes(), wasnt evaluating the different objects correctly
This commit is contained in:
parent
340ab435d6
commit
0702e6a258
@ -290,7 +290,7 @@ class Entry extends Model
|
|||||||
public function getMissingAttributes(): Collection
|
public function getMissingAttributes(): Collection
|
||||||
{
|
{
|
||||||
return $this->getAvailableAttributes()
|
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