Access form data inside beforeFormValidated()
I have country code field, I want to save
My codes:
EDIT
I notice that
+012 (notice plus sign) in database. but on input, I don't want user to insert "+" so I use mutateFormDataUsing() to append before save, but however this doesn't work with ->unique() validation, it always try to save to DB.My codes:
EDIT
I notice that
mutateFormDataUsing() run after validation, so how can I access form data inside ->beforeFormValidated()?