You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@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.
The text was updated successfully, but these errors were encountered: