EloquentFilter:一种过滤Laravel模型及其关系的雄辩方法

时间:2021-02-03 23:26:32
【文件属性】:
文件名称:EloquentFilter:一种过滤Laravel模型及其关系的雄辩方法
文件大小:29KB
文件格式:ZIP
更新时间:2021-02-03 23:26:32
laravel query eloquent filter model-filters 雄辩的过滤器 一种雄辩的方法来过滤雄辩模型及其关系 介绍 假设我们要返回由多个参数过滤的用户列表。 当我们导航到: /users?name=er&last_name=&company_id=2&roles[]=1&roles[]=4&roles[]=7&industry=5 $request->all()将返回: [ 'name' => 'er' , 'last_name' => '' , 'company_id' => '2' , 'roles' => [ '1' , '4' , '7' ], 'industry'
【文件预览】:
EloquentFilter-master
----.gitignore(12B)
----README.md(22KB)
----.github()
--------workflows()
--------dependabot.yml(506B)
----.styleci.yml(87B)
----tests()
--------helpers.php(165B)
--------ModelFilterChildTest.php(6KB)
--------config.php(254B)
--------MakeEloquentFilterCommandTest.php(1KB)
--------ModelFilterTest.php(10KB)
--------classes()
--------bootstrap.php(82B)
----phpunit.xml(918B)
----composer.json(1KB)
----src()
--------LumenServiceProvider.php(517B)
--------Filterable.php(4KB)
--------stubs()
--------ServiceProvider.php(641B)
--------ModelFilter.php(17KB)
--------Commands()
----CODE_OF_CONDUCT.md(3KB)
----config()
--------eloquentfilter.php(1KB)
----LICENSE.txt(1KB)
----.travis.yml(384B)
----.editorconfig(217B)

网友评论