Expected behavior "Meta Data When Constructing Resources" #41830
Unanswered
talelmishali
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Following the documentation Adding Meta Data When Constructing Resources my understanding is that using the
additional()
method will add additional data to the top-level resource response.The resource structure:
When having the following code I have no additional data added to the response:
OrganizationResource.php
Instead, I have to access the additional data from inside the resource collection and add it.
OrganizationBillingCollection.php
Is that the expected behavior?
Beta Was this translation helpful? Give feedback.
All reactions