Download the PHP package westhack/laravel-eloquent-search without Composer
On this page you can find all versions of the php package westhack/laravel-eloquent-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-eloquent-search
laravel-eloquent-search
一个简化 laravel model 筛选条件的库
介绍
如果我们想返回由多个参数筛选的用户列表:
/users?username=er&group_id=2&roles[]=1&roles[]=4&roles[]=7&created_at[]=2019-03-05&created_at[]=2019-03-06
$request->all()
的结果:
要根据这些参数进行筛选,我们需要做如下工作:
我们使用 laravel-eloquent-search 来减少工作量
model 引入 search trait
User Controller
请求示例
安装
All versions of laravel-eloquent-search with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7
The package westhack/laravel-eloquent-search contains the following files
Loading the files please wait ....