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.
Require a Auth middleware for all your routes in the App\Http\Kernel, try to call ->withoutMiddleware on login.
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: https://github.com/laravel/framework/pull/32404#issuecomment-614808543
Most helpful comment
@driesvints , @dsazup thanks for the feedback, I'd love to work on a PR for this tonight, will keep you both in the loop.