nahidulhasan/eloquent-filter
Eloquent Filter brings declarative, request-driven filtering to Laravel Eloquent models. Define allowed filters, map query-string parameters to columns or scopes, and keep controllers clean while composing reusable, chainable filter rules for APIs and admin listings.
Eloquent Filter adds declarative, request-driven filtering to Laravel's Eloquent ORM. Attach the provided trait to a model, declare which query parameters it accepts, and incoming filters are translated into composable query constraints—keeping controllers thin and database logic readable.
Rather than scattering when() clauses across your codebase, define filters once and reuse them across endpoints, with only whitelisted parameters ever reaching the query builder.
How can I help you explore Laravel packages today?