We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
代码:
$post = array( 'prop' => [ 'money' => '22.4', ], ); $rules = array( ['prop.money', 'float', 'min' => .1, 'filter' => 'float', 'msg' => '属性金额不能小于0.1元。'], ); $v = \Inhere\Validate\Validation::make( $post, rules: $rules, )->validate(stopOnError: !true); if ($v->isFail()) { var_dump($v->getErrors()); exit; } var_dump($post, $v->getSafeData()); exit;
输出:
array (size=1) 'prop' => array (size=1) 'money' => string '22.4' (length=4)
是不是filter对each字段是无法处理的?
The text was updated successfully, but these errors were encountered:
nelsonsun
No branches or pull requests
代码:
输出:
是不是filter对each字段是无法处理的?
The text was updated successfully, but these errors were encountered: