Download the PHP package chenyansong/response-transformation without Composer
On this page you can find all versions of the php package chenyansong/response-transformation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chenyansong/response-transformation
More information about chenyansong/response-transformation
Files in chenyansong/response-transformation
Download chenyansong/response-transformation
More information about chenyansong/response-transformation
Files in chenyansong/response-transformation
Vendor chenyansong
Package response-transformation
Short Description Conversion response of user defined model based on laravel
License MIT
Package response-transformation
Short Description Conversion response of user defined model based on laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package response-transformation
responseTransformation
Conversion response of user defined model based on laravel
基于laravel的自定义模型转换响应
备注
有点像dingo-api的转换层
开始
发布配置文件
定义模型转换层
- modelName 是允许访问的关联项
- modelTransForm 是子关联的模型转换层映射类
- handle 是返回的模型数据
- installType 更多的 install是根据配置文件里的query_key来的
关联
支持以传参的方式来访问关联,使用符号.可以找下一级关联,使用符号,可以查找当前不同的关联
约定
模型中的关联以get开头后面的驼峰命名的方式,然后在使用query查询时候,可以使用以下划线小写分割的形式
All versions of response-transformation with dependencies
PHP Build Version
Package Version
The package chenyansong/response-transformation contains the following files
Loading the files please wait ....