Laravel Pennant: first-party feature flags

In this video, I give you an overview of Laravel Pennant, a first-party feature flag library for Laravel that makes it easy to manage feature rollouts and A/B testing within your applications. We’ll explore how to set up and use Laravel Pennant, define and resolve feature flags, and integrate them into your views, middleware, and application logic for seamless feature management. Thanks to Bento for sponsoring this video! Check them out at aaronfrancis.com/bento. Follow Aaron: Twitter:   / aarondfrancis   LinkedIn:   / aarondfrancis   Website: https://aaronfrancis.com - find articles, podcasts, courses, and more. Featured in this episode: Docs: https://laravel.com/docs/11.x/pennant Chapters: 00:00 - Introduction to Laravel Pennant 00:24 - What is Laravel Pennant? 01:07 - Installing Laravel Pennant 01:41 - Setting Up Configuration and Migration 02:23 - Understanding Feature Stores 03:02 - Defining a New Feature Flag 05:00 - Resolving Feature Flags in Middleware and Views 06:40 - Checking Feature Flags for Different Users 07:59 - Persisting Resolved Feature Flags in the Database 08:34 - Using Lottery to Randomly Assign Feature Flags 09:28 - Implementing Feature Flag Middleware 10:24 - Defining Non-Boolean Feature Flags (e.g., Themes) 11:35 - Clearing Feature Flag Data from the Database 12:09 - Resolving Feature Flags in Blade Templates 13:46 - Using Blade Directives for Complex Feature Logic 14:10 - Check Out My Video on Laravel Octane