fix 3
This commit is contained in:
@@ -41,9 +41,12 @@ public function toSearchableArray(): array
|
||||
'phones' => $this->person->phones
|
||||
];*/
|
||||
|
||||
return [
|
||||
'person' => $this->person->toArray()
|
||||
];
|
||||
$this->loadMissing('person');
|
||||
$array = $this->toArray();
|
||||
|
||||
$array['person'] = $this->person ? $this->person->toArray() : [];
|
||||
|
||||
return $array;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user