Create Custom Rules
This section describes how to create your own custom rules.
Last updated
This section describes how to create your own custom rules.
Last updated
Along with , you can create your own custom rules very easily.
First step is you have to create your Rule
class by extending BaseRule
or any other existing rule like this.
You can use this rule using Validator.addRule()
method like this: