name : AttributeIsNotTranslatable.php
<?php

namespace Spatie\Translatable\Exceptions;

use Exception;

class AttributeIsNotTranslatable extends Exception
{
    public static function make(string $key, $model): static
    {
        $translatableAttributes = implode(', ', $model->getTranslatableAttributes());

        return new static("Cannot translate attribute `{$key}` as it's not one of the translatable attributes: `$translatableAttributes`");
    }
}

© 2025 UnknownSec
afwwrfwafr45458465
Password