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

Laravel Filterable Laravel Package

ndnam90/laravel-filterable

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Expansion: Enables dynamic, user-driven filtering for Eloquent queries without bloating core APIs or requiring custom middleware. Ideal for dashboards, search-heavy UIs, or admin panels where ad-hoc filtering is needed.
  • Roadmap Efficiency: Accelerates MVP development for data-heavy products (e.g., SaaS platforms, analytics tools) by reducing backend logic for common filter patterns (e.g., where, orderBy, with).
  • Build vs. Buy: Avoids reinventing query-building wheels; leverages existing Laravel conventions to standardize filtering across teams.
  • Use Cases:
    • Public APIs with client-side filtering (e.g., ?filter[status]=active&sort=-created_at).
    • Internal tools where users need to slice data (e.g., CRM filters, inventory management).
    • Legacy systems migrating to Laravel where filtering logic is scattered.

When to Consider This Package

  • Adopt if:

    • Your app relies on dynamic, user-defined filters (e.g., multi-select, range sliders) but lacks a scalable way to implement them.
    • You’re using Laravel Eloquent and want to avoid raw SQL or complex query builder chains.
    • Your team prioritizes developer velocity over fine-grained control (e.g., no need for custom validation per filter).
    • You’re okay with basic security (package doesn’t sanitize inputs; you’ll need to validate filter params separately).
  • Look elsewhere if:

    • You need advanced filtering (e.g., full-text search, geospatial queries) → Use Laravel Scout or custom packages.
    • Your filters require complex business logic (e.g., multi-step calculations) → Build a dedicated service.
    • You’re on Laravel 9+ → This package is unmaintained (last release: 2018); consider alternatives like spatie/laravel-query-builder.
    • Security is critical → Input sanitization isn’t handled; pair with a validation library (e.g., laravel-request).
    • You need real-time filtering (e.g., WebSockets) → Use Laravel Echo or dedicated search engines.

How to Pitch It (Stakeholders)

For Executives: "This package lets us ship filtering features 10x faster by turning manual query-building into a declarative API. For example, a support dashboard that previously took 2 dev weeks to build could launch in days. It’s low-risk (open-source, Laravel-native) and future-proofs our data layer for analytics-heavy products. Tradeoff: We’ll need to add input validation elsewhere, but the time saved justifies it."

For Engineering: "This gives us a consistent way to handle ad-hoc filters across the app. Instead of writing repetitive where() clauses, we define filter rules once (e.g., ['status' => 'active']) and reuse them in APIs, jobs, or even CLI tools. Downside: It’s unmaintained (last update: 2018), so we’d need to fork or pair it with modern validation. Best for CRUD-heavy apps where filtering is a common need but not a differentiator."

For Design/UX: "This enables faster iteration on data exploration—users can filter tables/dashboards without waiting for backend changes. For example, a sales team could toggle ‘closed deals’ or ‘high-value clients’ instantly. We’d need to design the UI to expose these filters clearly, but the backend work is minimal."

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.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle