Description
An elegant way to filter and sort queries in Laravel
Here is a basic usage example to clarify Purity's use case.
Add filter() to your query.
$posts = Post::filter()->get();
That's it! Now you can filter your posts by adding query string parameters to the URL.
GET /api/posts?filters[title][$contains]=Purity
Recent Courses on Laravel Daily
Laravel 13 Starter Kit Teams and Customizations
10 lessons
33 min
Queues in Laravel 13
18 lessons
1 h 12 min read
How to Build Laravel 13 API From Scratch
30 lessons
1 h 23 min