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