fix 5
This commit is contained in:
@@ -34,9 +34,11 @@ protected function makeAllSearchableUsing(Builder $query): Builder
|
||||
|
||||
public function toSearchableArray(): array
|
||||
{
|
||||
$this->loadMissing('person');
|
||||
|
||||
$array = $this->toArray();
|
||||
|
||||
$array['person'] = $this->person ? $this->person->only('full_name') : null;
|
||||
$array['person_full_name'] = $this->person ? $this->person->full_name: null;
|
||||
|
||||
return $array;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user