PHPackages                             meiko/laravel-filterable - 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. [API Development](/categories/api)
4. /
5. meiko/laravel-filterable

AbandonedArchivedLibrary[API Development](/categories/api)

meiko/laravel-filterable
========================

Provides JSON API filter support to models

1.1.0(5y ago)11.3k1MITPHPPHP &gt;=7.0.0

Since Apr 12Pushed 4y ago2 watchersCompare

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

READMEChangelog (10)DependenciesVersions (14)Used By (0)

laravel-filterable
==================

[](#laravel-filterable)

[![Build Status](https://camo.githubusercontent.com/8d7c1628228a7f1e8e7d314becfbc1bbf96befa610b9681ff20fb3a9c4409b03/68747470733a2f2f7472617669732d63692e6f72672f6d65696b6f6f792f6c61726176656c2d66696c74657261626c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/meikooy/laravel-filterable)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Use url parameters to easily sort, filter and search eloquent models.

[Class documentation](https://meikooy.github.io/laravel-filterable/)

Table of Contents
-----------------

[](#table-of-contents)

Click to expand- [laravel-filterable](#laravel-filterable)
    - [Table of Contents](#table-of-contents)
    - [Getting started](#getting-started)
        - [Installation](#installation)
        - [Configuration](#configuration)
        - [Usage](#usage)
    - [Sorting](#sorting)
        - [Ascending order](#ascending-order)
        - [Descending order](#descending-order)
    - [Filtering](#filtering)
        - [Id columns](#id-columns)
        - [Custom filters](#custom-filters)
    - [Searching](#searching)
        - [Prerequisites](#prerequisites)
        - [Usage](#usage-1)

Getting started
---------------

[](#getting-started)

### Installation

[](#installation)

Install with composer

```
composer require meikooy/laravel-filterable
```

### Configuration

[](#configuration)

Create new configuration file `filterable.php` in your [config](https://laravel.com/docs/6.x/configuration#introduction) directory (`config/filterable.php`).

```
