Skip to main content
Back to packages
515 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

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

How to Structure Laravel 13 Projects

16 lessons
1 h 32 min read