for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\MediaLibrary\Exceptions\FileCannotBeAdded;
use Spatie\MediaLibrary\Helpers\File;
use Spatie\MediaLibrary\Exceptions\FileCannotBeAdded;
class MimeTypeNotAllowed extends FileCannotBeAdded
{
public static function create($mimeType, array $allowedMimeTypes)
$allowedMimeTypes = implode(', ', $allowedMimeTypes);
return new static("File has a mimetype of {$mimeType}, while only {$allowedMimeTypes} are allowed");
}