I have a user-configurable drop-down list where the user can populate it with their own list of options. I'd like to validate it with the in:foo,bar
sort of validation rule.
Unfortunately, this means that some people are going to put in options like "Yes, I would". This is obviously going to break the validation if I pass an imploded list of drop-down options to the validation rule.
Is it possible to escape Laravel's rules to avoid this problem?
in
rule requires a comma separated list of values. Textarea doesn't help, as the user could still type a comma in one of the lines. – ceejayoz[comma]
) then do the same when checking the validation? – naththedeveloper