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

Add ViewMatched event #34

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Add ViewMatched event #34

merged 1 commit into from
Jul 25, 2023

Conversation

stayallive
Copy link
Contributor

It would be really helpful to have an event when a view is matched so logging can be done or context can be set based on it. My current use case for this is Sentry where we'd like to show a nicer URL based on the view name.

I used app() to get the dispatcher since that is also used a in other places but maybe that should be done differently.

@taylorotwell taylorotwell merged commit 7e27de8 into laravel:master Jul 25, 2023
3 checks passed
@stayallive stayallive deleted the add-event branch July 25, 2023 21:52
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.

3 participants