Methods
validate
(
-
value -
options -
model -
attribute
Parameters:
-
valueAny -
optionsObject-
allowBlankBooleanIf true, skips validation if the value is empty
-
typeStringCan be the one of the following options [
email,phone,url] -
inverseStringIf true, pass if the value doesn't match the given regex / type
-
regexRegexThe regular expression to test against
-
allowNonTldBooleanIf true, the predefined regular expression
emailallows non top-level domains -
minTldLengthNumberThe min length of the top-level domain on the predefined
emailregular expression
-
-
modelObject -
attributeString