2018-05-31 13:50:58 +02:00
|
|
|
# GreaterThan
|
|
|
|
|
|
|
|
- `GreaterThan(mixed $compareTo)`
|
|
|
|
|
|
|
|
Validates whether the input is greater than a value.
|
|
|
|
|
|
|
|
```php
|
|
|
|
v::greaterThan(10)->validate(11); // true
|
|
|
|
v::greaterThan(10)->validate(9); // false
|
|
|
|
```
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
Validation makes comparison easier, check out our supported
|
2019-05-11 17:34:42 +02:00
|
|
|
[comparable values](../comparable-values.md).
|
2018-05-31 13:50:58 +02:00
|
|
|
|
|
|
|
Message template for this validator includes `{{compareTo}}`.
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Comparisons
|
|
|
|
|
2018-05-31 13:50:58 +02:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
|
|
|
2.0.0 | Created
|
|
|
|
|
|
|
|
***
|
|
|
|
See also:
|
|
|
|
|
|
|
|
- [Between](Between.md)
|
|
|
|
- [Max](Max.md)
|
|
|
|
- [Min](Min.md)
|