From 74d40a40876bc7d74c07d258adaafb5827bbc716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Pocrnji=C4=8D?= Date: Fri, 22 Nov 2024 09:42:40 +0100 Subject: [PATCH] Ilike --- app/Http/Controllers/ClientController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index e6b8b21..b83a372 100644 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -40,7 +40,7 @@ public function show(Client $client, Request $request) { ->when($request->input('search'), fn($que, $search) => $que->whereHas( 'person', - fn($q) => $q->where('full_name', 'like', '%' . $search . '%') + fn($q) => $q->where('full_name', 'ilike', '%' . $search . '%') ) ) ->where('active', 1)