-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scramble does not recognise if wrapper is already contained in resource. #403
Comments
@mihob Please share the examples so I can reproduce. Thanks! |
For example
Laravel will not wrap the Result in
But scramble does not take this into account and the says the response will look like this:
Does that help you? @romalytvynenko |
Here you can see how the decision is made as to whether the data is wrapped again.
|
If the toArray function of a resource already contains the wrapper (data), Laravel will not wrap the result again. Scramble does not take this into account.
The text was updated successfully, but these errors were encountered: