https://laravel.com/docs/9.x/eloquent-resources#resource-collections
Note that this does not allow any addition of custom meta data that may need to be returned with your collection. If you would like to customize the resource collection response, you may create a dedicated resource to represent the collection:
I think you need a dedicated resource collection here and in there you have like in the doc:
return [
'data' => $this->collection,
...
];