We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Calling middleware statically behaves differently than chaining the method.
When digging into the source this makes sense looking at the implementation, but can be very confusing in usage + the error is silent.
Route::middleware('foo', 'bar')->get('/'); // Only 'foo' is registered Route::get('/')->middleware('foo', 'bar'); // Both middlewares are registered
The text was updated successfully, but these errors were encountered:
Submitted a PR to allow this to work at #21621
Sorry, something went wrong.
No branches or pull requests
Description:
Calling middleware statically behaves differently than chaining the method.
When digging into the source this makes sense looking at the implementation, but can be very confusing in usage + the error is silent.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: