This video will be available to
subscribers on Tue, Jan 27, 2026.
You must be a subscriber to view this video.
Jan 27, 2026
20m:26s

Middleware Basics

Classification
Software Engineering | Frameworks | Laravel
Keywords
laravel | php

About This Episode:

In today’s video, we’re digging into one of the most important — and most misunderstood — parts of the Laravel request lifecycle: middleware.

If you’ve ever wondered how Laravel transforms an incoming HTTP request into a response… or how authentication, sessions, CSRF protection, and even custom logic happen automatically — this video is for you.

⭐ What You’ll Learn
In this lesson, we break down the core concepts behind Laravel middleware, including:
- How middleware modifies request and response data
- How it can short-circuit the request lifecycle
- Where middleware fits inside Laravel’s 5-step request lifecycle
- How route files are registered inside bootstrap/app.php
- How to attach middleware to individual routes, route groups, or out-of-the-box groups like web and api
- How to explore your middleware stack using: php artisan route:list -v

We also walk through real examples showing how middleware groups (like auth, verified, and password.confirm) cascade to define route behavior.


🔗 Resources
• Request Lifecycle — https://laravel.com/docs/12.x/lifecycle
• Routing — https://laravel.com/docs/12.x/routing

#Laravel #PHP #WebDevelopment #LaravelMiddleware #LaravelRouting #PHPTutorials #LearnLaravel #LaravelTips #BackendDevelopment #FullStackDevelopment #WebDevTutorials #LaravelEcosystem #LaravelFramework #CodeBetter #BuildWithLaravel
Bob Cravens

Bob Cravens

Your Instructor
more »
Owner
TekFoundry
Wisconsin
United States
Short Bio:
Bob Cravens is a seasoned technology leader, software architect, and educator with a passion for empowering others through practical, real-world knowledge. As the founder of TekFoundry, Bob has dedicated his career to designing and delivering innovative software solutions that combine cutting-edge technology with elegant simplicity.

At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.

Bob’s expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, he’s passionate about helping others turn complex challenges into streamlined solutions.

When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.