Weave 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

Eloquent Filter Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Trait-based setup — drop-in integration with existing Eloquent models
  • Whitelisted filters — only explicitly allowed parameters are applied
  • Chainable constraints — filters compose with standard query builders
  • Request-friendly — maps query strings directly to safe filtering logic
  • Readable controllers — moves filtering concerns out of your actions
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.
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin