Looking to hire Laravel developers? Try LaraJobs

laravel-smart-filter maintained by crushjs

Description
Smart reusable query filters for Laravel
Author
Last update
2025/12/22 15:46 (dev-main)
License
Links
Downloads
1

Comments
comments powered by Disqus

Laravel Smart Filter

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