1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/vendor/respect/validation/docs/Min.md
2016-03-14 23:16:11 +01:00

598 B

Min

  • v::min(mixed $minValue)
  • v::min(mixed $minValue, boolean $inclusive = true)

Validates if the input is greater than the minimum value.

v::intVal()->min(15)->validate(5); // false
v::intVal()->min(5)->validate(5); // false
v::intVal()->min(5, true)->validate(5); // true

Also accepts dates:

v::date()->min('2012-01-01')->validate('2015-01-01'); // true

true may be passed as a parameter to indicate that inclusive values must be used.

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


See also: