Methods
validate
(
-
value
-
options
-
model
-
attribute
Parameters:
-
value
Any -
options
Object-
allowBlank
BooleanIf true, skips validation if the value is empty
-
before
StringThe specified date must be before this date
-
onOrBefore
StringThe specified date must be on or before this date
-
after
StringThe specified date must be after this date
-
onOrAfter
StringThe specified date must be on or after this date
-
precision
StringLimit the comparison check to a specific granularity. Possible Options: [
year
,month
,week
,day
,hour
,minute
,second
]. -
format
StringInput value date format
-
errorFormat
StringError output date format. Defaults to
MMM Do, YYYY
-
-
model
Object -
attribute
String