/**
  * Return links belonging to
  * the provided menu.
  *
  * @param MenuInterface $menu
  * @return LinkCollection
  */
 public function findAllByMenu(MenuInterface $menu)
 {
     return $this->model->where('menu_id', $menu->getId())->get();
 }
예제 #2
0
 /**
  * Return links belonging to
  * the provided group.
  *
  * @param GroupInterface $group
  * @return LinkCollection
  */
 public function findAllByGroup(GroupInterface $group)
 {
     return $this->model->where('group_id', $group->getId())->get();
 }