Not recognized more than one rule
This is my code:
what I'm trying to do is create different rules depending on what the user chooses in the select. It only works for me if I use one rule, when I use more than one it returns this error: "The given value "7|min:1" does not represent a valid number."
5 Replies
Try returning them as an array
i try this but returns this error: Method Illuminate\Validation\Validator::validateMax:7 does not exist.
take the array brackets off that are surrounding your function.
->rules(function() {})
?
Thanks to all!!