Skip to content

Commit

Permalink
Update filters.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Sep 26, 2024
1 parent c9a8157 commit bf34c6f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/en/docs/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,15 @@ This allows you to define a filter once and apply it to multiple models, reducin
Simply specify the filter class when applying filters to your models:

```php
User::filters([EmailFilter::class])->simplePaginate();
$filters = [
EmailFilter::class,
];

User::filters($filters)
->simplePaginate();

Customer::filters([EmailFilter::class])->simplePaginate();
Customer::filters($filters)
->simplePaginate();
```


Expand Down

0 comments on commit bf34c6f

Please sign in to comment.