public function getGroups() { $groups = $this->app->memory->get("cockpit.collections.groups", []); return json_encode($groups); }