diff --git a/README.md b/README.md index e829a67..fc4bf9e 100644 --- a/README.md +++ b/README.md @@ -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