This commit is contained in:
Simon Pocrnjič 2024-11-19 19:46:34 +01:00
parent d3f86470ce
commit d2f916bb79
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public function toSearchableArray(): array
];*/
return [
'person' => $this->person
'person' => $this->person->toArray()
];
}

View File

@ -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,