respect-validation/docs/Extension.md
Henrique Moody 2a2e1d577e
Change how documentation of rules are presented
Rules are not always used from the alias `v`, neither called staticaly.
2017-03-27 17:26:21 +02:00

489 B

Extension

  • Extension(string $extension)

Validates if the file extension matches the expected one:

v::extension('png')->validate('image.png'); // true

This rule is case-sensitive.


See also: