Laravel Pennant: first-party feature flags @aarondfrancis
Laravel Pennant: first-party feature flags  @aarondfrancis
Uploaded June 2024 | Updated September 2026, 22 hours ago
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: twitter.com/aarondfrancis
LinkedIn: linkedin.com/in/aarondfrancis
Website: aaronfrancis.com - find articles, podcasts, courses, and more.

Featured in this episode:
Docs: 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
Laravel Pennant: first-party feature flagsMoving from Redis to SQLite with Mike BuckbeeThe Music Makers Podcast - 034 - Subconscious Information ProcessingCodex reverse engineered my studio lightsLaravels secret weapon: macros (watch me code)Token Town Live - Sol Release Day!Herokus glory days & Postgres vs the world, w/ Craig KerstiensTesting a New Solo VersionDownloading YouTube videosThe Music Makers Podcast - 035 - Be KindThe Music Makers Podcast - 020 - Cool Is OverratedThe Music Makers Podcast - 023 - Move Your Feet
Aaron Francis |

Laravel Pennant: first-party feature flags

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER