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 would like to understand what it is the behaviour for the method JsonApiResponseTrait::addHeaders ?
This method do nothing more than returning the response parameter and is named addHeaders but there is no header parameter, only the response. Is this method only here to be overrided ? Something else ?
The text was updated successfully, but these errors were encountered:
Yeah, you should overwrite it in your class which is implementing JsonApiResponseTrait.
Remember that the response is immutable and as such your implementation should look along these lines:
Hi,
I would like to understand what it is the behaviour for the method
JsonApiResponseTrait::addHeaders
?This method do nothing more than returning the response parameter and is named
addHeaders
but there is no header parameter, only the response. Is this method only here to be overrided ? Something else ?The text was updated successfully, but these errors were encountered: