Skip to main content
Back to packages
516 GitHub stars

abbasudo/laravel-purity

View on GitHub

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

[NEW] Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks

7 lessons
43 min read

Testing in Laravel 13 For Beginners

26 lessons
1 h 41 min read

Queues in Laravel 13

18 lessons
1 h 12 min read

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.