Validates that a given number
or Date
object is between some minimum and maximum.
type: string
default: This value should be between {{ min }} and {{ max }}.
The message that will be shown if the underlying value is not a number (per the is_numeric PHP function).
Parameter | Description |
---|---|
{{ value }} | The current (invalid) value |
type: integer
This required option is the "max" value. Validation will fail if the given value is greater than this max value.
type: string
default: This value should be {{ limit }} or less.
The message that will be shown if the underlying value is more than the max option.
Parameter | Description |
---|---|
{{ value }} | The current (invalid) value |
{{ limit }} | The upper limit |
type: integer
This required option is the "min" value. Validation will fail if the given value is less than this min value.
type: string
default: This value should be {{ limit }} or more.
The message that will be shown if the underlying value is less than the min option.
Parameter | Description |
---|---|
{{ value }} | The current (invalid) value |
{{ limit }} | The lower limit |