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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope