public function get($attrName) { if ($attrName == 'id') { $attrName = '_id'; } return parent::get($attrName); }
/** * Get the value for an attribute. * * @return mixed */ public function getAttribute($name) { return $this->attributes->get($name); }