Download the PHP package little-superman/laravel-request-params without Composer
On this page you can find all versions of the php package little-superman/laravel-request-params. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download little-superman/laravel-request-params
More information about little-superman/laravel-request-params
Files in little-superman/laravel-request-params
Download little-superman/laravel-request-params
More information about little-superman/laravel-request-params
Files in little-superman/laravel-request-params
Vendor little-superman
Package laravel-request-params
Short Description Processing request parameters
License MIT
Package laravel-request-params
Short Description Processing request parameters
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-request-params
动态查询
安装
Laravel
laravel >= 5.5
ServiceProvider 会自动加载
其他版本
在 config/app.php
中添加
LittleSuperman\RequestParams\Providers\ConsoleServiceProvider::class
,
LittleSuperman\RequestParams\Providers\ConfigServiceProvider::class
命令行
创建模型
创建请求资源
字段说明
格式
字段说明
where 条件字段限制
order 字段限制
配置文件位置: resources/config/dynamicQuery.php
使用
配置Model
-
在模型中引入
LittleSuperman\RequestParams\DynamicQuery\Query
- 模型中添加
$searchField
, key 对应前端使用的字段 value 对应数据库使用字段
配置样式
开启动态查询
在模型后面调用queryable
方法来开启动态查询
加载其他模型搜索字段
All versions of laravel-request-params with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.3
illuminate/config Version 5.8.*
illuminate/database Version 5.8.*
illuminate/support Version 5.8.*
illuminate/routing Version 5.8.*
symfony/routing Version ^4.2
illuminate/config Version 5.8.*
illuminate/database Version 5.8.*
illuminate/support Version 5.8.*
illuminate/routing Version 5.8.*
symfony/routing Version ^4.2
The package little-superman/laravel-request-params contains the following files
Loading the files please wait ....