File "CannotCreateTransformerAttribute.php"

Full Path: /var/www/html/back/vendor/spatie/laravel-data/src/Exceptions/CannotCreateTransformerAttribute.php
File size: 389 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Spatie\LaravelData\Exceptions;

use Exception;
use Spatie\LaravelData\Transformers\Transformer;

class CannotCreateTransformerAttribute extends Exception
{
    public static function notATransformer(): self
    {
        $transformer = Transformer::class;

        return new self("WithTransformer attribute needs a transformer that implements `{$transformer}`");
    }
}