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