How can I check if the value is null or valid value? Required or present rule doesn't fit in this case, because it fails on null or cancels further checks. #52266
Unanswered
FragsterAt
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Custom validation rule or 'sometimes|nullable|string|min:3'. For date you need to pass a format. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
etc
Required fails on null value, present succeed on any values but other checks are not executed on empty strings.
I want to pass data direct to database with nullable columns and now I have errors like
Invalid datetime format: 1292 Incorrect date value: '' for column
instead of validation errorsThere is closed issues #52262 #50626 about this problem
Beta Was this translation helpful? Give feedback.
All reactions