Laravel tutorials for beginner – Middleware
In this video we’ll be talking about Laravel Middleware. Middleware is a great way to run code before or after a route request. You can create middleware for things like authentication, so routes are protected by an authentication middleware and until that person can get to that route they must be authenticated.
source