From d3f86470cebe4637d453dc4cb39ab58c26557dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Pocrnji=C4=8D?= Date: Tue, 19 Nov 2024 19:12:56 +0100 Subject: [PATCH] Fix again --- app/Models/Client.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Client.php b/app/Models/Client.php index 3e7d6dc..f67c4ca 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -34,15 +34,15 @@ protected function makeAllSearchableUsing(Builder $query): Builder public function toSearchableArray(): array { - $this->load('person'); - $person = [ + + /*$person = [ 'full_name' => $this->person->full_name, 'addresses' => $this->person->addresses, 'phones' => $this->person->phones - ]; + ];*/ return [ - 'person' => $person + 'person' => $this->person ]; }