Open
Description
Hi,
at the moment when you use the use
statement you include your middleware for the actual namespace and childrens of your namespace. For some middlewares thats not what you want. For instance authentication middleware should only be included for your current route or up to the end of your namespace.
I think it would be nice do extend the use
statement with an option to configure the scope
to which this middleware should be applied.
A block for use
can't be used because this block is applied to the middleware class.