Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Eloquent Filter Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs Buy: Eliminates need for custom filtering logic development, saving 20-40% engineering time per endpoint. Proven MIT-licensed solution with 449+ stars and active maintenance.
  • Roadmap Acceleration: Enables rapid implementation of filterable API endpoints for customer-facing search, admin dashboards, and analytics features without rewriting boilerplate code.
  • Use Cases: Critical for data-heavy applications requiring dynamic client-side filtering (e.g., e-commerce product searches, user management consoles, reporting tools) where query parameters must translate to complex database conditions.
  • Risk Mitigation: Built-in whitelisting and rate limiting prevent injection attacks and DDoS risks common in manual filtering implementations.

When to Consider This Package

Adopt when:

  • Building Laravel 8.x-13.x applications with Eloquent models requiring dynamic query filtering
  • Needing to support advanced filtering types (e.g., whereBetween, fuzzy search, orWhere, whereHas) without custom code
  • Prioritizing developer velocity for filter-heavy features (e.g., admin panels, search APIs)
  • Requiring rate limiting or custom condition handling out-of-the-box

Look elsewhere if:

  • Using non-Laravel frameworks or custom ORMs
  • Filtering requirements are trivial (e.g., single static WHERE clause)
  • Project uses unsupported PHP/Laravel versions (e.g., PHP <8.0 or Laravel <8.x)
  • Team requires absolute control over every query optimization (though package is highly extensible)

How to Pitch It (Stakeholders)

Executives: "This package cuts development time for filterable APIs by 70% compared to custom builds. It accelerates delivery of customer-facing search and dashboard features while reducing maintenance costs and security risks through built-in safeguards—freeing engineering resources for high-impact innovation."

Engineering: "Integrates in minutes via a single trait. Handles complex query structures (e.g., fuzzy search, rate limiting, nested relations) with zero boilerplate. Reduces controller code by 80% while maintaining full extensibility for custom logic—proven in production with 449+ stars and active Laravel 12+ support."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport