Spatie\Translatable\HasTranslations::getAttributeValue PHP Метод

getAttributeValue() публичный Метод

public getAttributeValue ( string $key ) : mixed
$key string
Результат mixed
    public function getAttributeValue($key)
    {
        if (!$this->isTranslatableAttribute($key)) {
            return parent::getAttributeValue($key);
        }
        return $this->getTranslation($key, config('app.locale'));
    }