Looking to hire Laravel developers? Try LaraJobs

laravel-filters maintained by worksome

Description
Laravel Filters
Author
Last update
2026/04/09 11:28 (dev-dependabot/github_actions/dependabot/fetch-metadata-3)
License
Downloads
220 432

Comments
comments powered by Disqus

Laravel Filters

Latest Version on Packagist GitHub Tests Action Status GitHub Static Analysis Action Status Total Downloads

Enhanced filtering for Eloquent models.

Installation

You can install the package via composer:

composer require worksome/laravel-filters

Usage

// Using DI
public function __construct(private readonly \Worksome\Filters\FilterQuery $filter) {}

$filteredInstance = $this->filter
    ->model(TestModel::class)
    ->apply(TestModelFilter::class)
    ->input($input)
    ->get();

// Using the facade
$filteredStatic = \Worksome\Filters\Filter::model(TestModel::class)
    ->apply(TestModelFilter::class)
    ->input($input)
    ->get();

Testing

composer test

Changelog

Please see GitHub Releases for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.