mehdi-fathi/eloquent-filter
Laravel package to filter Eloquent models via query strings. Supports complex query structures, custom/overridable conditions, builder integration, and fine-grained control over filter execution. Useful for APIs and large datasets, with optional rate limiting.
The package provides a clean architecture fit for Laravel applications by extending Eloquent with a standardized filtering layer via a trait and query string parsing. Integration feasibility is high due to minimal setup steps (Composer require, trait usage, whitelist configuration) and compatibility with Laravel 8-13. Key technical risks include potential SQL injection if whitelist is misconfigured (though the package enforces whitelisting), performance degradation with complex nested filters on large datasets (e.g., multiple whereHas), and ambiguous security implications for the "fuzzy search" feature which may bypass database indexes. Critical questions: How does it handle nested relationship filtering with deep joins? What's the actual maintenance cadence given the suspicious 2026 release date? Are there known conflicts with Laravel Sanctum or other auth packages? How does the rate limiting feature scale under high traffic?
Stack fit is excellent for modern Laravel projects using Eloquent, with explicit support for PHP 8.0-8.5 and Laravel 8-13. Migration path involves:
How can I help you explore Laravel packages today?