Eloquent resources with resful api #51092
Answered
by
marius-mcp
marius-mcp
asked this question in
Q&A
-
https://laravel.com/docs/11.x/eloquent-resources#writing-resources Hi. If I want to use eloquent resources to decorate a resource just like in this Mappable (https://github.com/jarektkaczyk/eloquence-mappable) I would do it like:
This works for GET (by id or for list). But how about for CREATE or UPDATE (POST/PUT/PATCH)? Is there a way to undecorate the body of the request using this built-in feature? |
Beta Was this translation helpful? Give feedback.
Answered by
marius-mcp
Apr 23, 2024
Replies: 1 comment
-
I guess not... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
marius-mcp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess not...