Protecting New Doors (API Endpoints)
Learn how to create a middleware in Laravel and use it to protect routes.
We'll cover the following...
Middleware introduction
Middleware can help with authentication, authorization, and other request-related task. Since middleware is executed before the request, developers find innovative ways to use them to enforce business rules.
Terminable middlewares can help us with the responses as well.