Middleware serves as a link between a request and its response. It provides the medium for authentication of the HTTP requests. You can create a new middle using the artisan command make:middleware