Laravel tutorial - Episode 8 - Introduction to Middleware

preview_player
Показать описание
This tutorial continues now in another Laravel topic that is the request middleware. Middleware is a class that executes business logic between the route and your controller action, meaning that you can filter your HTTP request to validate business rules or anything you like, giving you the choice to stop and not run your controller action. It can be used for specific interim validations you want to do (e.g. user is authenticated, user has a specific role, etc) or any other logic you would like to evaluate prior to go to your controller action.

Рекомендации по теме