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

ActiveLibrary

castion2293/query-filter
========================

Easily create filters for your Eloquent model.

v0.0.2(7y ago)07MITPHPPHP &gt;=5.5.0

Since Dec 11Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

QueryFilter [![Build Status](https://camo.githubusercontent.com/121508af71b0f0c7dbc95b937c74aa2e351f9e5d48f779ca48205446899e9053/68747470733a2f2f7472617669732d63692e6f72672f6b626c6169732f71756572792d66696c7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kblais/query-filter)
====================================================================================================================================================================================================================================================================================================

[](#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" : {
        "kblais/query-filter": "dev-master"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/kblais/query-filter"
        }
    ]
}
```

Usage
-----

[](#usage)

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

```
