File "InvalidPathGenerator.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/spatie/laravel-medialibrary/src/MediaCollections/Exceptions/InvalidPathGenerator.php
File size: 585 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Spatie\MediaLibrary\MediaCollections\Exceptions;
use Exception;
use Spatie\MediaLibrary\Support\PathGenerator\PathGenerator;
class InvalidPathGenerator extends Exception
{
public static function doesntExist(string $class): self
{
return new static("Path generator class `{$class}` doesn't exist");
}
public static function doesNotImplementPathGenerator(string $class): self
{
$pathGeneratorClass = PathGenerator::class;
return new static("Path generator class `{$class}` must implement `$pathGeneratorClass}`");
}
}