#Rule::requiredIf() failing

7 messages · Page 1 of 1 (latest)

brisk coyote
#

Because the field is there, and its values is null. null is not an integer.

#

You probably want the nullable rule in there

warm cedar
#

but then if i say nullable, my required if rule will make sense?

brisk coyote
#

Assuming you're not just passing false to it like in your snippet, I don't see how that would be relevant

warm cedar
#

i dont understand what u mean

brisk coyote
#

That makes two of us. What does your required_if rule have to do with the value being nullable?

warm cedar
#

maybe i can remove the value instead of having it as null