/** * Returns all childeren of the item * * @return Lavary\Menu\Collection */ public function all() { return $this->builder->whereParent($this->id, true); }
/** * Returns childeren of the item * * @return array */ public function children() { return $this->builder->whereParent($this->id); }