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

ActiveLibrary

fguzman/query-filter-laravel
============================

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

0.1.3(2y ago)01721MITPHPPHP ^7.2.5|^8.0|^8.1|^8.2

Since Nov 21Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (5)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:

```
