egeniq/laravel-rules
Composer 安装命令:
composer require egeniq/laravel-rules
包简介
Helper function to simplify defining validation rules of mixed types
关键字:
README 文档
README
Helper function to simplify defining validation rules of mixed types
The helper enables you to use mixed format when defining validation rules in a controller. This is especially helpful when you want to add a custom rule to a list of rules that are in the string format.
// Before $validation = validator($data, [ 'id' => 'required|integer', 'amount' => [ 'required', 'integer', new MyCustomRule() ], ]); // After $validation = validator($data, [ 'id' => 'required|integer', 'amount' => rules('required|integer', new MyCustomRule()), ]);
Installation
composer require egeniq/laravel-rules
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-10