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)