Replies: 2 comments
-
Mhhh, I don't have a good solution in mind since anything could be passed to from not only models. And when returning the data object as a response we don't have a notion what was passed into the from method. My only solution would be manually creating the response: response(ItemData::from($item->loadMissing('location')), 201); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closed with #291 - thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
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,
I am moving my Laravel app to use Laravel-data as DTO and replacing resources, too.
My tests just throw errors, as the API does no longer return HTTP 201 on store methods - I guess
wasRecentlyCreated
is being ignored?Is there any chance to get this working as expected?
Beta Was this translation helpful? Give feedback.
All reactions