public function toArray()
{
$attributes = parent::toArray();
$hiddenAttributes = $this->getHidden();
foreach ($this->translatedAttributes as $field) {
if (in_array($field, $hiddenAttributes)) {
continue;
}
if ($translations = $this->getTranslation()) {
$attributes[$field] = $translations->{$field};
}
}
return $attributes;
}