laraditz/saring
Saring is a simple Eloquent model filtering package for Laravel and Lumen. Add the Filterable trait to models, create per-model filter classes (e.g., UserFilter), optionally whitelist filterable fields, and call Model::filter($request->all()).
LIKE queries, exact matches, range filters).For Executives: "Saring is a lightweight, MIT-licensed Laravel package that lets us add search/filter functionality to our admin tools or public APIs in hours—not weeks. It’s like adding Google Search to any database table with minimal code. For example, we could let support agents filter users by name or email in our dashboard without writing custom queries. It’s a low-risk, high-reward way to improve UX and operational efficiency, especially if we’re already using Laravel. The trade-off? We give up some customization for speed, but the package is simple enough to extend later if needed."
For Engineering:
*"This package solves a common pain point: writing repetitive where() clauses for filtering. By using the Filterable trait and defining rules in a dedicated *Filter class, we can:
App/Filters), making them easier to maintain.Proposal: Use this for MVP filtering needs (e.g., user/admin panels) and evaluate if we need to customize it after launch. It’s a 10-minute setup for a 10x productivity gain."*
How can I help you explore Laravel packages today?