diff --git a/app/Filament/Resources/VisitorEntryResource.php b/app/Filament/Resources/VisitorEntryResource.php index 7cc636c..4c3d90a 100644 --- a/app/Filament/Resources/VisitorEntryResource.php +++ b/app/Filament/Resources/VisitorEntryResource.php @@ -467,8 +467,15 @@ class VisitorEntryResource extends Resource } } + // if (! empty($data['name'])) { + // $query->where('name', 'like', '%'.$data['name'].'%'); + // } + if (! empty($data['name'])) { - $query->where('name', 'like', '%'.$data['name'].'%'); + $query->whereRaw( + 'LOWER(name) LIKE ?', + ['%' . strtolower($data['name']) . '%'] + ); } if (! empty($data['company'])) {