v4.2.0
What's Changed
- [验证] Laravel 9 测试用例验证
- [新增] 可以根据映射关系自定义返回字段的值,比如将
code => 200
映射成code => 0
,可以在response.php
配置中增加如下配置
// ...
'format' => [
'fields' => [
// ...
'code' => ['alias' => 'code', 'show' => true,'map' => [200 => 0]],
// ...
],
],
Full Changelog: v4.1.0...v4.2.0