This lesson has been archived.
Think of middleware as layers of an onion. To get through to the core of your application, a request must first pass through these various layers. Perhaps one layer determines if the application is in maintenance mode. Another layer, or middleware, might verify that the user is signed in as an administrator.