In this episode, we are going to see how we can group the number of validation rules and then use that group to validate required fields.
To do that, we have used __construct method and specified all validation rule in config array and set those config rules.
We have then use the group signup in our validate method. You can create any number of group and rules for any number of form you have on your site.
Thank you for watching my video.