/** * Returns the attributes */ public function getApiAttributes($names = true) { $attrs = parent::getAttributes($names); unset($attrs['id']); return $attrs; }