lacodix/laravel-model-filter
Filter, search, and sort Eloquent models with reusable filter classes and query-string support. Includes built-in types (string, date, number, enum), relation/nested relation filtering, custom complex logic, and filter visualisation.
belongstomanytimeframe) for Laravel models, reducing backend complexity for time-based or relational queries. Ideal for products requiring dynamic data segmentation (e.g., analytics dashboards, reporting tools, or SaaS multi-tenant filtering).Adopt if:
where() clauses).Look Elsewhere if:
For Executives: "This Laravel package laravel-model-filter lets us add sophisticated data filtering—like time-based or multi-relationship queries—to our product with minimal code. For example, we could let users filter orders by ‘last 90 days’ or ‘custom date ranges’ without writing custom backend logic. It’s a ‘buy’ decision that saves dev time and speeds up features like analytics or reporting. The latest update (v4.4.1) adds support for filtering across many-to-many relationships with timeframes, which could directly enable [Product X’s] roadmap item for dynamic segmentation."
For Engineering:
*"This package provides a declarative way to handle complex Eloquent filters (e.g., BelongsToManyTimeframe) that would otherwise require repetitive scopes or raw SQL. The tradeoff is slight abstraction overhead, but it’s worth it for:
created_at and customer_id with custom timeframes, this handles it in one line. Downside: Not ideal for ultra-high-performance queries—we’d need to benchmark first. Let’s prototype it for [Feature Y] and compare to our current approach."*How can I help you explore Laravel packages today?