for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Owowagency\LaravelMedia\Rules;
class IsBase64Subtype extends BaseTypeRule
{
/**
* Checks if base64 has a valid subtype.
*
* @param string $mimeType
* @return bool
*/
protected function validateType(string $mimeType): bool
$exploded = explode('/', $mimeType);
return $exploded[1] == $this->type;
}