hasEnumCast($key)) { return $this->enumGetAttributeValue($key); } return $this->transGetAttributeValue($key); } /** * Manually mix setAttribute from CastsEnums and HasTranslations */ public function setAttribute($key, $value) { if ($this->hasEnumCast($key)) { return $this->enumSetAttribute($key, $value); } return $this->transSetAttribute($key,$value); } }