laravel-smart-filter maintained by crushjs
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