public function getGroupNames() { return $this->groups->map(function ($group) { return $group->getName(); })->toArray(); }