I wonder if there is a nicer way to set includes for the response. I dont mean to parse the includes from include parameter, but set them "manually" for that response.
right now I am doing this (Laravel):
$this->response->getManager()->parseIncludes('team');
return $this->response->withItem($request->user(), new UserTransformer);
Maybe something like
return $this->response->parseIncludes('team')->withItem($request->user(), new UserTransformer);
would be shorter and nicer. I could prepare a pull request if that's something you would like to integrate.
@naabster Hi, i think something like $this->response->includes('team')->withItem($request->user(), new UserTransformer); could be a good format. If you want, you can create a PR for that.
I wonder if there is a nicer way to set includes for the response. I dont mean to parse the includes from include parameter, but set them "manually" for that response.
right now I am doing this (Laravel):
Maybe something like
would be shorter and nicer. I could prepare a pull request if that's something you would like to integrate.