public function getAttributeLabel($attribute) { if (!$this->eavEnable) { return parent::getAttributeLabel($attribute); } if ($this->hasEavAttribute($attribute)) { if (!is_null($this->eavAttributeInstances[$attribute]->label) && $this->eavAttributeInstances[$attribute]->label !== '') { return $this->eavAttributeInstances[$attribute]->label; } } return parent::getAttributeLabel($attribute); }