Custom validation in custom payment method in admin
I am creating custom payment method for which i want to use custom validator in system.php file. Below is example code.
'name' => 'field2', 'title' => 'custompay::app.admin.system.field2', 'type' => 'file', 'validation' => 'CustomRuleClass', 'channel_based' => false, 'locale_based' => true,
Here CustomRuleClass is Rule class i have created in my new package folder. How can i use it system.php file for validation?
sanjay-webkul last edited by
Which version of bagisto are you using?
devansh-webkul last edited by
I can only suggest you the path on this so that you will get an idea of how the actual configuration works.
Now, this is the place where validations are fetching,
And these validations are bound with Vue validations. So you need to handle this also.
And this is the method which you can override,