crushjs/laravel-smart-filter

Smart reusable query filters for Laravel

Maintainers

Package info

github.com/crushjs-dev/laravel-smart-filter

pkg:composer/crushjs/laravel-smart-filter

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2025-12-22 14:31 UTC

This package is auto-updated.

Last update: 2026-03-22 15:26:13 UTC


README

Installation

composer require crushjs/laravel-smart-filter

Usage (simple & real)

use Crushjs\SmartFilter\SmartFilter;
use App\Models\User;
$users = SmartFilter::apply(
    User::query(),
    request()->only(['name', 'email'])
)->get();

Configuration

Publish the configuration file using the following command:

php artisan vendor:publish --provider="Crushjs\SmartFilter\SmartFilterServiceProvider" --tag="config"

Features

  • ✅ Support for query filtering
  • ✅ Easy integration with Laravel applications

License

MIT © Crushjs