ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 5.12.0
    • Affects Version/s: None
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • 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).

              Assignee:
              Pauline Vos
              Reporter:
              Pauline Vos
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: