Search⌘ K

Protecting New Doors (API Endpoints)

Understand how to create and apply middleware in Laravel to secure API endpoints managing menu items. This lesson covers checking restaurant ownership, aborting unauthorized requests, and configuring route middleware for protection.

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.

Creating a middleware

In this course, ...