Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

PHP For Beginners, Ep 39 – Write Your First Middleware

28.2K views on YouTube

In this episode, we’ll discuss the concept of middleware, and how it can be used as a bridge between an incoming request and the core of your application. We’ll create two middleware classes to handle route authorization for guests and authenticated users. Watch this full series at http://phpforbeginners.com.

Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.

Laracasts: https://laracasts.com

Laracasts Twitter: https://twitter.com/laracasts
Jeffrey Way Twitter: https://twitter.com/jeffrey_way