> For the complete documentation index, see [llms.txt](https://boredprogrammers.gitbook.io/laragrid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://boredprogrammers.gitbook.io/laragrid/filter/custom-builder.md).

# Custom Builder

You can also define a custom builder for a filter. This is useful when you want to modify the query builder based on the filter's value.

```php
Column::make('name', 'Name')
    ->setFilter(
        TextFilter::make()
            ->setBuilder(function ($builder, $value) {
                $builder->where('name', 'LIKE', "%{$value}%");
            })
        ),
```
