Skip to content

Use custom middleware only for special routes #712

Open
@dspaeth-faber

Description

@dspaeth-faber

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions