php-laravel-fluent-validation:Laravel的流利风格验证规则构建器

时间:2021-03-09 15:33:41
【文件属性】:
文件名称:php-laravel-fluent-validation:Laravel的流利风格验证规则构建器
文件大小:137KB
文件格式:ZIP
更新时间:2021-03-09 15:33:41
php laravel validation fluent rule-builder Laravel的流利验证规则构建器 使用流畅的语法来构建 范例: $ rules = [ 'id' => Rule :: int ()-> required (), 'name' => Rule :: string ()-> required ()-> minLength ( 3 )-> toString (), 'email' => Rule :: string ()-> required ()-> email ()-> toArray (), 'role_id' => Rule :: modelExists ( Role ::class), 'salary' => Rule :: int ()-> when ( $ isPHPDeveloper , function ( $ rule
【文件预览】:
php-laravel-fluent-validation-master
----composer.json(1KB)
----phpunit.xml(747B)
----docs()
--------intellisence.png(50KB)
--------inline_docs.png(55KB)
----.github()
--------workflows()
----phpcs.xml(2KB)
----tests()
--------PhoneRulesTest.php(3KB)
--------RequiredRulesTest.php(1KB)
--------DatabaseRulesTest.php(4KB)
--------RuleTest.php(7KB)
--------CustomRulesTest.php(1KB)
--------EnumRulesTest.php(569B)
--------FileRulesTest.php(1KB)
--------ImageRulesTest.php(868B)
--------NumericRulesTest.php(659B)
--------StringRulesTest.php(2KB)
--------DateRulesTest.php(856B)
----LICENSE(1KB)
----src()
--------RuleSet.php(6KB)
--------GenericRuleSet.php(6KB)
--------IntRuleSet.php(187B)
--------IRule.php(306B)
--------FluentValidatorFactory.php(999B)
--------FileRuleSet.php(2KB)
--------DatabaseRuleSet.php(3KB)
--------RequiredRules.php(3KB)
--------FluentValidationServiceProvider.php(1KB)
--------SimpleRules.php(6KB)
--------Rules()
--------StringRuleSet.php(4KB)
--------ImageRuleSet.php(3KB)
--------Rule.php(12KB)
--------DateRuleSet.php(2KB)
--------NumericRuleSet.php(1KB)
--------PhoneRuleSet.php(2KB)
----CHANGES.md(1KB)
----.gitignore(33B)
----Makefile(138B)
----README.md(5KB)
----.gitattributes(24B)

网友评论