v::mimetype(string $mimetype)
Validates if the file mimetype matches the expected one:
v::mimetype('image/png')->validate('image.png'); //true
This rule is case-sensitive and requires fileinfo PHP extension.
See also:
v::mimetype(string $mimetype)
Validates if the file mimetype matches the expected one:
v::mimetype('image/png')->validate('image.png'); //true
This rule is case-sensitive and requires fileinfo PHP extension.
See also: