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/MinimumAge.md
2016-03-14 23:16:11 +01:00

473 B

MinimumAge

This is going to be deprecated, please use Age instead.

  • v::minimumAge(int $age)
  • v::minimumAge(int $age, string $format)

Validates a minimum age for a given date.

v::minimumAge(18)->validate('1987-01-01'); // true
v::minimumAge(18, 'd/m/Y')->validate('01/01/1987'); // true

Using date() before is a best-practice.

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


See also: