docs/validators/GreaterThanOrEqual.md
GreaterThanOrEqual(mixed $compareTo)Validates whether the input is greater than or equal to a value.
v::intVal()->greaterThanOrEqual(10)->assert(10);
// Validation passes successfully
v::intVal()->greaterThanOrEqual(10)->assert(9);
// → 9 must be greater than or equal to 10
v::intVal()->greaterThanOrEqual(10)->assert(11);
// Validation passes successfully
Validation makes comparison easier, check out our supported comparable values.
Message template for this validator includes {{compareTo}}.
GreaterThanOrEqual::TEMPLATE_STANDARD| Mode | Template |
|---|---|
default | {{subject}} must be greater than or equal to {{compareTo}} |
inverted | {{subject}} must be less than {{compareTo}} |
| Placeholder | Description |
|---|---|
compareTo | Value to be compared against the input. |
subject | The validated input or the custom validator name (if specified). |
| Version | Description |
|---|---|
| 3.0.0 | Renamed from "Min" to "GreaterThanOrEqual" |
| 2.0.0 | Became always inclusive |
| 1.0.0 | Became inclusive by default |
| 0.3.9 | Created |