What is middleware?

Middleware is a layer of callbacks that we can add to a route to intercept the navigation process. Using these callbacks, we can add checks, write custom logic, and modify various stages of the process. This gives us fine-grained control over the whole navigation flow.

Start by extending the GetMiddleware class:

Get hands-on with 1400+ tech skills courses.