belongsTo(CustomField::class); } /** * Get the language for this translation. */ public function language() { return $this->belongsTo(Language::class); } public function getValueAttribute($value) { try { return array_values(json_decode($value, true, 512, JSON_THROW_ON_ERROR)); } catch (Throwable) { return $value; } } }