> ## 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.

# In

export const type_1 = "$in:null"

export const type_0 = "$in"

## Definition

```php theme={null}
Filter::field('name', [FilterType::IN]);
```

## Array/Object Structure

<ParamField body="type" type="string" required>
  <code>
    {type_0}
  </code>
</ParamField>

<ParamField body="target" type="string" required />

<ParamField body="value" type="array,min:1" required />

<ParamField body="value.*" type="string|int|float" required />

## Example

```php theme={null}
$filter = [
    'type'   => '$in',
    'target' => 'name',
    'value'  => ['Taylor', 'Otwell',]
];
```

```php theme={null}
$sql = Person::filter([$filter])->toRawSql();
```

### SQL

```sql theme={null}
select * from "people" where "people"."name" in ('Taylor', 'Otwell')
```

## Modifiers

### Null

<ParamField body="type" type="string" required>
  <code>
    {type_1}
  </code>
</ParamField>

```sql theme={null}
select *
from "people"
where (
    "people"."name" in ('Taylor', 'Otwell')
        or
    "people"."name" is null
)
```
