mirror of
https://github.com/Respect/Validation.git
synced 2024-06-26 17:20:16 +02:00
10df3211f5
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
601 B
601 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.
Categorization
- File system
Changelog
Version | Description |
---|---|
1.0.0 | Created |
See also: