Replies: 1 comment
-
You can register the middleware directly in your routes, without touching the public function bootingPackage()
{
$kernel = $this->app->make(Kernel::class);
$kernel->appendMiddlewareToGroup('web', YourMiddleware::class);
} See The Kernel API: |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
It would be great if the package tools would allow you to add middleware. One issue I can think of is the order of middleware is important.
Beta Was this translation helpful? Give feedback.
All reactions