PHPackages                             alfredoihublab/query-filter-laravel - 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. [Database &amp; ORM](/categories/database)
4. /
5. alfredoihublab/query-filter-laravel

ActiveLibrary[Database &amp; ORM](/categories/database)

alfredoihublab/query-filter-laravel
===================================

Easy apply filters to your querys for eloquent orm by course panel styde

05PHP

Since May 9Pushed 3y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Query Filter for Laravel
========================

[](#query-filter-for-laravel)

This Project utilizes [Composer](https://getcomposer.org/) to manage its dependencies. So, before install this package, make sure you have Composer installed on your machine.

Run this command:

```
composer --version
```

### Installation

[](#installation)

Install package via composer:

```
composer require fguzman/query-filter-laravel
```

### How to use it

[](#how-to-use-it)

Create a new QueryClass with next command `make:query` and create a new FilterClass, you can use `make:filter` command.

Once these classes are created, you must implement the logic you need in each of them.

Note: your query class must be associated with the model for which you created it, so that you do not get errors in the filters.

For example, thinking about the User model

```
php artisan make:query UserQuery
```

The above command will create a file named UserQuery with the following structure:

```
