8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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, I validate a integer field with the next rules
$rules = [ 'field-name' => [ 'integer', ['min', 1] ] ];
$data = [ 'field-name' => '' // Empty string ];
but the validations pass without errors, for the error to be detected I had to add the following rules
$rules = [ 'field-name' => [ 'optional', ['required', true], 'integer', ['min', 1] ] ];
this generates confusing code, and as more fields are added it gets even more confusing
Note: sorry for my english and thanks for your time.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I validate a integer field with the next rules
but the validations pass without errors, for the error to be detected I had to add the following rules
this generates confusing code, and as more fields are added it gets even more confusing
Note: sorry for my english and thanks for your time.
The text was updated successfully, but these errors were encountered: