public function getHeaderDescriptionAttribute($value) { if ($this->masterProduct) { return $this->masterProduct->header_description; } else { return $value; } }