PHPackages                             marksihor/laravel-filtering - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. marksihor/laravel-filtering

ActiveLibrary

marksihor/laravel-filtering
===========================

Laravel model filtering

2.994(2y ago)06.7kMITPHPPHP &gt;=7.1

Since May 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/marksihor/laravel-filtering)[ Packagist](https://packagist.org/packages/marksihor/laravel-filtering)[ RSS](/packages/marksihor-laravel-filtering/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (46)Used By (0)

laravel-filtering
=================

[](#laravel-filtering)

The package allows you to make model filter by user request in 1 line, you just need to use the MarksIhor\\LaravelFiltering\\Filterable trait in your Controller.php (or whatever your controller you need the filter to work).

Since 2.00 filter by model relationships.

Installing
----------

[](#installing)

### Note: it is better to use new filtering package:

[](#note-it-is-better-to-use-new-filtering-package-httpspackagistorgpackagesmarksihorlaravel-query-filter)

```
$ composer require marksihor/laravel-filtering -vvv
```

Usage
-----

[](#usage)

### Use the Filterable trait in your Controller

[](#use-the-filterable-trait-in-your-controller)

```
