Fixed scout relation tables.
This commit is contained in:
parent
3ae70bf340
commit
1bc6203e44
|
|
@ -34,6 +34,7 @@ protected function makeAllSearchableUsing(Builder $query): Builder
|
||||||
|
|
||||||
public function toSearchableArray(): array
|
public function toSearchableArray(): array
|
||||||
{
|
{
|
||||||
|
$this->load('person');
|
||||||
$person = [
|
$person = [
|
||||||
'full_name' => $this->person->full_name,
|
'full_name' => $this->person->full_name,
|
||||||
'addresses' => $this->person->addresses,
|
'addresses' => $this->person->addresses,
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ 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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user