PHPackages                             wu/giorgio-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. [Search &amp; Filtering](/categories/search)
4. /
5. wu/giorgio-filter

ActiveLibrary[Search &amp; Filtering](/categories/search)

wu/giorgio-filter
=================

laravel query filter

1.1.1(2y ago)16MITPHP

Since Nov 22Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/m-finder/giorgio-filter)[ Packagist](https://packagist.org/packages/wu/giorgio-filter)[ RSS](/packages/wu-giorgio-filter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

[![](https://camo.githubusercontent.com/23cbf1628d7e28b914339044d22da152e953fc1dec9dc6eeb056b2897e2e8c47/68747470733a2f2f6d2d66696e6465722e6769746875622e696f2f696d616765732f6176617461722e6a706567)](https://camo.githubusercontent.com/23cbf1628d7e28b914339044d22da152e953fc1dec9dc6eeb056b2897e2e8c47/68747470733a2f2f6d2d66696e6465722e6769746875622e696f2f696d616765732f6176617461722e6a706567)

[![](https://camo.githubusercontent.com/f8f9cee0ea67d842b33a5a9761547225012eed6bc1ba6601c1b322d4fd04249e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d6d2d2d66696e6465722d726564)](https://camo.githubusercontent.com/f8f9cee0ea67d842b33a5a9761547225012eed6bc1ba6601c1b322d4fd04249e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d6d2d2d66696e6465722d726564)[![](https://camo.githubusercontent.com/d1238984cc880c8e98c98378c9da6885720aafb776de3c09169036e3412ca003/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3e3d352e302d726564)](https://camo.githubusercontent.com/d1238984cc880c8e98c98378c9da6885720aafb776de3c09169036e3412ca003/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3e3d352e302d726564)[![License](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](https://packagist.org/packages/wu/giorgio-filter)

关于 About Giorgio Filter
-----------------------

[](#关于-about-giorgio-filter)

为你的 Laravel 应用添加一个简化的查询工具。

Add a simplified query tool to your Laravel application.

### 预览 Preview

[](#预览-preview)

[![](https://repository-images.githubusercontent.com/722049413/a1b33a3f-8d0d-429d-bda4-468ad01756b2)](https://repository-images.githubusercontent.com/722049413/a1b33a3f-8d0d-429d-bda4-468ad01756b2)

### 安装 Install

[](#安装-install)

引入扩展

Require

```
composer require wu/giorgio-filter

```

在你的 Model 类中使用 Filter

Use Filter in your Model class

```
use GiorgioFilter\Filters\Filter;

```

### 注意事项 Considerations

[](#注意事项-considerations)

Filter 只能构建 `=` 条件的查询语句。如果要自定义复杂条件，请像下边代码示例一样自定义 Filter，最后将自定义 Filter 引入到 Model 中。

Filter can only build query with `=` conditions. If you want to customize complex conditions, please customize the Filter as shown in the code example below, and then import the customized Filter into the your Model.

示例 example：

```
