Understanding Laravel's Context Capabilities
As part of the Laravel 11 release, the core team introduced a new powerful feature called Context that allows you to capture, retrieve, and share information throughout your application during a single request. If you're curious, join me as I guide you through the basic usage, while providing a variety of examples that you can implement within your own projects.
Series episodes
Concepts and Applications (6)
Introducing Context
9m 14sExplore Laravel's new Context feature to capture and manage data throughout a request's lifecycle. Join this friendly Laracasts tutorial to master the basics!
Loading Contextual Data
10m 13sLearn how to efficiently load contextual data in Laravel, focusing on middleware best practices. Follow this friendly Laracasts tutorial to optimize your app’s flow!
Using Context in Jobs
11m 15sDiscover how to use contextual data in Laravel jobs with a practical contact form example. Follow this friendly Laracasts tutorial to enhance your app skills!
Testing with Context
5m 50sLearn how to easily test code using context with this clear, friendly Laracasts tutorial. Master dependency injection and boost your testing skills today!
Conditionally Adding Contextual Data
5m 40sExplore Laravel's Context facade to capture only the data you need. Learn two powerful methods in this friendly, practical Laracasts tutorial. Level up now!
Using Stacks and Handling Events
5m 53sLearn how to use stacks for tracking request history and handle hydrated and dehydrating events in this clear, hands-on Laracasts tutorial. Boost your skills today!




