How to set a different message bag for the validator to use
I need to validate $request on multiple iteration. One iteration identifies critical problems (ie the value is just wrong), and another iteration determines if a value is OK but not acceptable for a special program.
What I want to do is have two different sets of validation rules for each field. When the validator processes one set of rules, it puts the errors in one messagebag. And then the next iteration the validator uses a different messagebag.
How do I specify which messagebag to use on each iteration?
Although if there's a better approach, I'm certainly open to it.
If you have multiple forms on a single page, you may wish to name the MessageBag of errors, allowing you to retrieve the error messages for a specific form. Pass a name as the second argument to withErrors: