PHPackages                             mcklayin/query-filter - 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. mcklayin/query-filter

ActiveLibrary

mcklayin/query-filter
=====================

Easy create filters for your Eloquent model. Based on kblais/query-filter

07PHPCI failing

Since Dec 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mcklayin/query-filter)[ Packagist](https://packagist.org/packages/mcklayin/query-filter)[ RSS](/packages/mcklayin-query-filter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

QueryFilter
===========

[](#queryfilter)

Easily create filters for your Eloquent model.

Based on [Jeffray Way's Laracast tutorial](https://github.com/laracasts/Dedicated-Query-String-Filtering/).

Installation
------------

[](#installation)

The library is currently not available on Composer, so you have to declare it manually in your `composer.json`.

To do this, add the following in your `composer.json` :

```
{
    "require" : {
        "mcklayin/query-filter": "dev-master"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/mcklayin/query-filter"
        }
    ]
}
```

Or type in console: composer require "mcklayin/query-filter @dev"

Usage
-----

[](#usage)

- Create your model filters, for exemple in a `App\Http\Filters` namespace :

```
