Table with Complex Filters and Comma Separated Filter

Filament 4/5

Demonstrates multiple filter types including comma-separated text inputs and dropdowns, plus their layout configuration.

FilamentExamples ThumbBase (14)

Get the Source Code:

Only This Example

$9

One-time payment

Full source code for Table with Complex Filters and Comma Separated Filter
Downloadable ZIP file with the source code
Lifetime access to this example
GitHub Sign in with GitHub to buy

Sign in first, then complete your $9 checkout.

Best value — all 169 examples

FilamentExamples Membership

$99 /year
or
$199 lifetime
Access to code of all 169 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
View membership plans

30-day money-back guarantee

How it works

The whole filter logic is in the ProductsTable class filters() method.

The layout option FiltersLayout::AboveContent is added to show filters above the table.

The filtersFormColumns() method is added to show filters in a grid.

For searching code and name, the form is used with a TextInput. The query for this search is custom.

Before making a query, the explode() PHP function is used so that a comma can separate search values, and the array_map() function with trim is used to remove empty values.

Here is the code of how the query looks like for the code search (for name, it's the same, just different variable):

->query(function ($query, array $data) {
// ...
The FULL tutorial is available after the purchase: in the Readme file of the official repository you would get invited to.