> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eloquentfiltering.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Filtering Models

## Overview

Once you have [made your model `Filterable`](/v2/basics/make-model-filterable).

You should pass filters to `::filter()` on the model.

```php theme={null}
$sql = Product::filter([
    [
        'target' => 'name',
        'type'   => '$eq',
        'value'  => 'TV',
    ],
])->toRawSql();
```

```sql theme={null}
select * from "products" WHERE "products"."name" = 'TV'
```
