Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan authored Apr 11, 2024
1 parent 177bd11 commit f304b8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ You can apply filters to your Eloquent queries like so:
use App\Models\Post;

$filter = new PostFilter(request(), cache());
$posts = Post::query()
->filter($filter)
->get();
$posts = Post::filter($filter)->get();
```

### Applying Filters in Controllers
Expand Down

0 comments on commit f304b8d

Please sign in to comment.