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

[8.x] Pass the request to the renderable callback #34200

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

sebdesign
Copy link
Contributor

The render method of the exception handler accepts the $request object but it's not available in renderable callbacks.

This PR passes the request as a second argument to the registered renderable callbacks.

I've added tests that cover the new renderable callback functionality as well as the request parameter.
I'll also make a PR to the docs if this gets merged.

@taylorotwell taylorotwell merged commit 4026844 into laravel:8.x Sep 8, 2020
@GrahamCampbell GrahamCampbell changed the title Pass the request to the renderable callback [8.x] Pass the request to the renderable callback Sep 8, 2020
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