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