Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 777 Bytes

Min.md

File metadata and controls

39 lines (28 loc) · 777 Bytes

Min

  • Min(mixed $compareTo)

Validates whether the input is greater than or equal to a value.

v::intVal()->min(10)->isValid(9); // false
v::intVal()->min(10)->isValid(10); // true
v::intVal()->min(10)->isValid(11); // true

Validation makes comparison easier, check out our supported comparable values.

Message template for this validator includes {{compareTo}}.

Categorization

  • Comparisons

Changelog

Version Description
2.0.0 Became always inclusive
1.0.0 Became inclusive by default
0.3.9 Created

See also: