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