There are lots of times we need to run a bit of code before or after a request is made to a web server. For example, we might need to authenticate a certain route, or we might want to log requests. That's where Laravel middleware comes in!
In this Coffee Break Course, Envato Tuts+ instructor Matthew Machuga will show you how middleware works, how it flows through an application, and how to create middleware of your own.
If you haven't used Laravel before, why not check out our full course and learn Laravel 5: Get Started With Laravel 5. If you've mastered the fundamentals of Laravel, build on your experience with these courses:
1. How It Works: Laravel Middleware
[MUSIC] Laravel's middleware is a helpful abstraction that allows you to run some bit of functionality before or after every request is made. I'm Matt Machuga. And in this video, we're going to take a look at how middleware works, and how to get started writing your own.