Methods
validate
(
-
value
-
options
-
model
-
attribute
Parameters:
-
value
Any -
options
Object-
allowNone
BooleanIf true, skips validation if the value is null or undefined. Default: true
-
allowBlank
BooleanIf true, skips validation if the value is empty
-
useBetweenMessage
BooleanIf true, uses the between error message when
max
andmin
are both set -
is
NumberThe exact length the value can be
-
min
NumberThe minimum length the value can be
-
max
NumberThe maximum length the value can be
-
-
model
Object -
attribute
String