Ilike
This commit is contained in:
parent
ee2681b9fb
commit
74d40a4087
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user