/** * Convert the model instance to an array. * * @return array */ public function toArray() { return array_merge(parent::toArray(), ['items' => $this->getChildren()]); }
/** * Convert the model instance to an array. * * @return array */ public function toArray() { return array_merge(parent::toArray(), ['items' => $this->getChildren()]); }