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

[9.x] Fire event before route matched #41765

Merged
merged 2 commits into from
Apr 1, 2022
Merged

[9.x] Fire event before route matched #41765

merged 2 commits into from
Apr 1, 2022

Conversation

timroberson
Copy link
Contributor

Fire a new RouteMatching event before the router attempts to find a matching route. This event is a companion to the existing RouteMatched event and allows a developer access to work with the request immediately before and after routing. Since this is simply adding a new event that existing applications will not be subscribed to, I believe it is fully backward compatible. Thank you for your consideration.

@timroberson timroberson changed the title Fire event before route matched [9.x] Fire event before route matched Mar 31, 2022
@taylorotwell taylorotwell merged commit 8dd8918 into laravel:9.x Apr 1, 2022
@AdiechaHK
Copy link

Hey, @timroberson I don't get your idea, we can achieve the same using middleware so what is the point to raise this event. I just wanted to understand the reason why you added this.

Thanks

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.

None yet

3 participants