masonite
masonite copied to clipboard
Update nested validation with index number instead of *
Is your feature request related to a problem?
Currently when there is a validation error when using the *
nested validations it returns an error like The users.*.last_name field has duplicate values
. It should show an error like The users.3.last_name field has duplicate values
Update
@girardinsamuel is this possible? we currently hide all the fetching logic behind the dotty code so im not sure its possible to fetch the index of the problem list right?
we currently hide all the fetching logic behind the dotty code so im not sure its possible to fetch the index of the problem list right?
You're right it's not that simple ! But it's not the only problem, we could mark this a low priority and not easy for now.