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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
i have used the JsonResource for my Data till now.
But i really used the feature additional on the JsonResource.
Example
So i got an response like this
So the additional data are not wrapped by the data wrapper. How can i archive that with laravel-data?
// edit
My Hack for now: return [...$dataObjectFroMSpatie->toArray(), ...$this->getCreateData($project)];
Beta Was this translation helpful? Give feedback.
All reactions