Laravel 11 without global middleware #50963
Unanswered
MircoBabin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
After installing Laravel 11, there is only
bootstrap/app.php
for defining middlewares. As I don't want any "magical" middleware, I registered the middleware myself, without the->withMiddleware()
call.I'm wondering if there are better techniques to accomplish the same thing? Because the
$app->afterResolving
looks a bit clumsy/fragile.Beta Was this translation helpful? Give feedback.
All reactions