Exemplo n.º 1
0
 protected function getGroups()
 {
     $defaultGroupList = $this->getDefaultGroupList();
     $currentGroupList = Menu::distinct()->select('group_name')->whereNotIn('group_name', array_keys($defaultGroupList))->lists('group_name')->toArray();
     return array_unique(array_merge($defaultGroupList, array_combine($currentGroupList, $currentGroupList)));
 }