mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 23:35:45 +01:00
This documentation is in the "rules" directory, but it should be outside that directory since the "rules" directory is supposed to only have documentation about rules. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
689 B
689 B
Max
Max(mixed $compareTo)
Validates whether the input is less than or equal to a value.
v::max(10)->validate(9); // true
v::max(10)->validate(10); // true
v::max(10)->validate(11); // false
Validation makes comparison easier, check out our supported comparable values.
Message template for this validator includes {{compareTo}}.
Changelog
| Version | Description |
|---|---|
| 2.0.0 | Became always inclusive |
| 1.0.0 | Became inclusive by default |
| 0.3.9 | Created |
See also: