Why do you need to validate them together? Can't you work out if they're valid on their own?
What rules are you using?
Summer Sale! All accounts are 50% off this week.
So, I read the documentation and reviewed some web sites regarding custom validation and I got it to work for me (mods to AppServiceProvider etc) when I call the validation from my simple test. The problem is this:
In real life have two fields on screen, countrycode and phonenumber and I need to validate them as a single unit i.e. "+".$countrycode.$phonenumber with a call to Twilio.
What is the correct way to achieve the desired result? Code before or after Spark::validateUsersWith ? or can I pass more than one field to a custom validation? I couldn't find any relevant documentation on parameter passing in a custom validation.
BTW, very, VERY new to Laravel and Spark so don't jump too hard.
Thanks in advance
David
Please or to participate in this conversation.