respect-validation/docs/Max.md
Emmerson Siqueira 6124176c89
Add support to Countable type for ComparisonHelper
Signed-off-by: Emmerson Siqueira <emmersonsiqueira@gmail.com>
2018-06-18 11:13:16 +02:00

641 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: