-
Notifications
You must be signed in to change notification settings - Fork 11.2k
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
WithoutMiddleware doesn't work on global middleware #32384
Comments
I'm not sure if it was intended to skip global middleware. You're free to attempt a pr however. |
Heya. I'm gonna re-open this as it indeed seems to be expected to work with global middleware as well. Thanks for reporting. |
@driesvints , @dsazup thanks for the feedback, I'd love to work on a PR for this tonight, will keep you both in the loop. |
Closing this as the PR was rejected. Please see the explanation by Taylor here: #32404 (comment) |
btw you can exclude a global middleware like this inside Kernel.php
|
Description:
A recent commit added the option to skip/disable middleware for specific routes, which works for Route Groups and the like, but the implementation for global middleware doesn't actually check for it yet. I'm willing to look into a fix for this, but wanted to raise an issue first to check if such a fix would be welcome.
Steps To Reproduce:
Require a Auth middleware for all your routes in the App\Http\Kernel, try to call ->withoutMiddleware on login.
The text was updated successfully, but these errors were encountered: