From d2f916bb792be2da81262efce7f1ad26a4745792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Pocrnji=C4=8D?= Date: Tue, 19 Nov 2024 19:46:34 +0100 Subject: [PATCH] Fix 2 --- app/Models/Client.php | 2 +- app/Models/ClientCase.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Models/Client.php b/app/Models/Client.php index f67c4ca..c4e7ce6 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -42,7 +42,7 @@ public function toSearchableArray(): array ];*/ return [ - 'person' => $this->person + 'person' => $this->person->toArray() ]; } diff --git a/app/Models/ClientCase.php b/app/Models/ClientCase.php index 8983764..adc9aae 100644 --- a/app/Models/ClientCase.php +++ b/app/Models/ClientCase.php @@ -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,