public function updateGroup(GroupInterface $group, array $data = []) { $this->groups()->update($group, $data); return $group; }