Fix 2
This commit is contained in:
parent
d3f86470ce
commit
d2f916bb79
|
|
@ -42,7 +42,7 @@ public function toSearchableArray(): array
|
|||
];*/
|
||||
|
||||
return [
|
||||
'person' => $this->person
|
||||
'person' => $this->person->toArray()
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ protected function makeAllSearchableUsing(Builder $query): Builder
|
|||
|
||||
public function toSearchableArray(): array
|
||||
{
|
||||
$this->load('person');
|
||||
return [
|
||||
'person' => $this->person,
|
||||
'addresses' => $this->person->addresses,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user