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

Laravelfilters Laravel Package

tiagomichaelsousa/laravelfilters

Laravel Filters lets you filter Eloquent models directly from query strings. Define reusable filter classes, attach them to models with a simple trait, and compose filters per request. Includes artisan generators for creating filters quickly, keeping controllers clean and queries readable.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Shipping filterable list/search endpoints faster: LaravelFilters provides a reusable, convention-driven pattern for turning request query parameters into Eloquent query constraints. This directly supports roadmap items like admin dashboards, search pages, and public API "list" endpoints without re-implementing bespoke filtering logic per resource.
  • Build vs. buy (build vs. adopt) for query filtering: Rather than allocating engineer weeks to design an in-house filtering layer, this package lets you adopt a thin, community-tested abstraction. The release's Laravel 11 and 12.x compatibility signals an actively maintained dependency, reducing the "will it break on our next framework upgrade?" risk that often tips build-vs-adopt decisions.
  • API consistency and developer velocity: Standardizing on one filter pattern across resources lowers cognitive overhead and onboarding time, and helps enforce consistent query-parameter contracts across your API surface — a product-quality concern for public-facing APIs.
  • Framework upgrade planning: The explicit Laravel 11 support and Laravel 12.x compatibility let you sequence a Laravel upgrade on the roadmap without a blocking dependency gap, which matters for security patching and support-window planning.
  • Scoping use cases: Best suited to CRUD-heavy products (SaaS admin tools, marketplaces, internal tools, content management) where filtering is a recurring, well-understood need — not for products requiring highly specialized query semantics.

When to Consider This Package

Adopt when:

  • You are on (or planning to move to) Laravel 11 or 12.x — the v1.7.0 release explicitly covers both, so the dependency will not block your upgrade path.
  • You have multiple Eloquent-backed resources that need similar filtering (by status, date range, category, relation, etc.) and want a single, repeatable pattern rather than per-model one-offs.
  • You want a lightweight, in-app abstraction rather than a full search platform — filter logic stays in PHP/Eloquent where your team already works.
  • Your filtering needs are conventional (equality, ranges, relations, sorting) and can be expressed as reusable filter classes.
  • You value a small surface area you can read, fork, or extend over a heavyweight third-party search stack.

Look elsewhere when:

  • You need relevance-ranked full-text search, faceting, typo tolerance, or high-volume search — that is a job for a dedicated search engine (e.g., Meilisearch, Elasticsearch/OpenSearch, Algolia), not a query-filter helper.
  • Your filtering requirements are deeply domain-specific or graph-like, where an abstraction may add indirection without payoff.
  • You require a vendor with a formal SLA/commercial support contract; this is a community package.
  • You are pinned to older Laravel versions outside the package's supported matrix, or your upgrade cadence is far ahead of the package's release cadence — validate compatibility before committing.

How to Pitch It (Stakeholders)

For executives: LaravelFilters is a small, actively maintained open-source library that standardizes how our Laravel application filters and searches data. Adopting it means we build list, search, and admin screens faster and more consistently, with less custom code to maintain. Critically, the latest release (v1.7.0) adds Laravel 11 support and Laravel 12.x compatibility — confirming the package keeps pace with the framework and will not hold back our planned Laravel upgrades or security patching. It is low-cost, low-risk, and reduces time-to-market for data-heavy features.

For engineering: This gives us a reusable, convention-based filtering layer on top of Eloquent instead of hand-rolling query-parameter handling per model. It keeps filter logic in PHP where the team can read, test, and extend it, and it's compatible with Laravel 11 and 12.x — so it fits our upgrade trajectory. Recommended scope: conventional filtering for CRUD/list endpoints. Not recommended for full-text search, faceting, or relevance ranking — for those we should still evaluate a dedicated search engine. Suggested next step: a short spike applying it to one representative resource to validate ergonomics, then codify a team convention if it fits.

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.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log