public function getPrimaryUsergroupOptions() { return UserGroup::lists('name', 'id'); }
public function getPrimaryUsergroups() { $this->userGroups = UserGroup::lists('name', 'id'); $this->page['userGroups'] = $this->userGroups; }