Create Custom Rules
This section describes how to create your own custom rules.
Along with 30+ built-in rules, 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:
Last updated