Closed slowcheetah closed 1 year ago
That mutator on the main model for a translated attribute is absolutely not expected/supported - in case you have to mutate a translated attribute put that on the translation model.
public function getNameAttribute()
{
$locale = 'En';
$this->locale = $locale;
return $this->translate(mb_strtolower($locale))->name;
}
Fix for issue #334
Added tests: