original_string: public function getAttribute($key)
      {
          if (in_array($key, $this->getTranslatable())) {
              return $this->translate() ? $this->translate()->$key : null;
          }
  
          return parent::getAttribute($key);
      }
code: public function getAttribute($key)
      {
          if (in_array($key, $this->getTranslatable())) {
              return $this->translate() ? $this->translate()->$key : null;
          }
  
          return parent::getAttribute($key);
      }
code_tokens: public function getAttribute ( $ key ) { if ( in_array ( $ key , $ this -> getTranslatable ( ) ) ) { return $ this -> translate ( ) ? $ this -> translate ( ) -> $ key : null ; } return parent :: getAttribute ( $ key ) ; }
docstring: Get an attribute from the model or translation.
  
  @param string $key
  
  @return mixed
docstring_tokens: Get an attribute from the model or translation .