Reputation: 269
I'd like to use Laravel's "in" validation to validate data coming from a "select" input but some of the options in the select might contain comma which is a special character in validation string. Is there a way to escape commas. Eg: if the select has "foo", "bar" and "foo, bar" as option the following Laravel validation doesn't work: "field" => "in:foo,bar,foo, bar"
Thanks for the help
Upvotes: 4
Views: 2313