protected function replaceAttribute($attribute) { if (array_key_exists($attribute, $this->replacements)) { return $this->replacements[$attribute]; } return $attribute; }