Fixed scout relation tables.

This commit is contained in:
Simon Pocrnjič
2024-11-19 18:44:02 +01:00
parent 3ae70bf340
commit 1bc6203e44
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ protected function makeAllSearchableUsing(Builder $query): Builder
public function toSearchableArray(): array
{
$this->load('person');
return [
'person' => $this->person,
'addresses' => $this->person->addresses,