Skip to content

Global Middleware #22

@lucacastelnuovo

Description

@lucacastelnuovo

Is this the best way to add global middleware?

$router->group(['middleware' => SimpleMiddleware::class], function (Router $router) {
    // All routes go here
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions