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
Hi ! Thank you for this lib !
Is there a way to combine eachValidator with FieldValidation and filters ? Perhaps with something like this :
$v = Inhere\Validate\FieldValidation::check(['array' => [ [ 'string' => " some words ", 'int' => "44", ], [ 'string' => " some letters ", 'int' => " 456 ", ] ]], [ ['array.*.int', 'each|required|int', 'filter' => 'int'], ['array.*.string', 'each|required|string', 'filter' => 'trim'], ]);
Bonus question : is there a way to get index/key in the errors array ? Currently we don't know which element is/are in error ?
0 => array:2 [▼ "name" => "array.*.int" "msg" => "array.*.int must be through the int verify" ]
The text was updated successfully, but these errors were encountered:
hi @yoh if use wildcard *, will skip apply filters. :(
*
Sorry, something went wrong.
inhere
No branches or pull requests
Hi ! Thank you for this lib !
Is there a way to combine eachValidator with FieldValidation and filters ?
Perhaps with something like this :
Bonus question : is there a way to get index/key in the errors array ? Currently we don't know which element is/are in error ?
The text was updated successfully, but these errors were encountered: