Skip to content
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

[5.4] Let JsonResponse also provide the original data. #17137

Merged
merged 2 commits into from
Jan 4, 2017
Merged

[5.4] Let JsonResponse also provide the original data. #17137

merged 2 commits into from
Jan 4, 2017

Conversation

lucasmichot
Copy link
Contributor

\Illuminate\Http\Response provides $original property and a getOriginalContent.
This PR provides the same feature for \Illuminate\Http\JsonResponse.

This way when a Arrayable object is returned, the orignal object can still be available in a middleware, for instance.

@taylorotwell taylorotwell merged commit 5d9b75c into laravel:5.4 Jan 4, 2017
@lucasmichot lucasmichot deleted the feature/5.4/response-original-content branch January 10, 2017 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants