Laravel 验证规则列表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47211686/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
List of Laravel validation rules
提问by hightekjonathan
Is there a master list of all available rules for Laravel request validation? I have only seen the ones shown in the docs, but there must be more than just 4-5 rules. I know I can make custom ones, which I am currently, but I would like to know all of the available ones.
是否有 Laravel 请求验证的所有可用规则的主列表?我只看过文档中显示的那些,但肯定不止 4-5 条规则。我知道我可以制作定制的,我目前正在这样做,但我想知道所有可用的。
回答by Kenny Horna
回答by N Mahurin
If you check the Illuminate\Validation\Validator class it has quite a few arrays toward the top with different built in validation rules.
如果您检查 Illuminate\Validation\Validator 类,它的顶部有很多数组,具有不同的内置验证规则。
回答by user8865860
Laravel documentation enlists all the validators
Laravel 文档征集了所有验证器