Methods
validate
(
-
value
-
options
-
model
-
attribute
Parameters:
-
value
Any -
options
Object-
allowBlank
BooleanIf true, skips validation if the value is empty
-
type
StringCan be the one of the following options [
email
,phone
,url
] -
inverse
StringIf true, pass if the value doesn't match the given regex / type
-
regex
RegexThe regular expression to test against
-
allowNonTld
BooleanIf true, the predefined regular expression
email
allows non top-level domains -
minTldLength
NumberThe min length of the top-level domain on the predefined
email
regular expression
-
-
model
Object -
attribute
String