Skip to content

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