collection->map(fn (Group $group): GroupResource => new GroupResource($group, $this->query))->all(); } }