-
Type:
Task
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
None
For drivers it does not support natively, Filament routes every text search through Laravel's whereLike() (filamentphp/filament#20442), always with $caseSensitive = false, and expects % and _ as wildcards plus the $boolean and $not arguments to be honoured:
$query->whereLike($column, "%{$search}%", false, 'or', true);
We already inherit whereLike and compile like to a case-insensitive regex (PHPORM-232). Add a test that pins the exact Filament call shape (wildcards, escaped % and _, or boolean, negation, case-insensitivity) and fix anything that does not hold. Expected to be test-only.
Filament features this covers: table column search, table global search, resource global search, Select/SelectColumn option search, AttachAction/AssociateAction record search, MorphToSelect search, and the QueryBuilder text operators (contains, starts with, ends with, equals).
- related to
-
PHPLARA-292 SPIKE: Investigate Filament support
-
- Closed
-