code: public function getAttribute($key) {
          if (!isset($this->attributes[$key])) {
              return false;
          }
  
          return $this->attributes[$key];
      }
docs: Retrieve an attribute
  
  @param $key
  @return mixed