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