Bunting Documentation
Laravel Pennant feature flags for Craft 6
Installation
Requirements, the Craft 6 beta caution, install, and your first flag.
Flags and rollouts
Modes, per-site rollouts, user groups, sticky percentages, overrides, and the order Bunting decides in.
Twig and Blade
feature(), @feature, the bunting global and requireFeature, with the same results in both engines.
Routes and URIs
Gate Craft pages by URI, Laravel routes with middleware, and element conditions.
Pennant in PHP
Feature::active() and friends, scopes for a user and site, and features your app defines itself.
Previews
See the site with a flag on or off, for your own session only.
GraphQL
Resolved flag values for headless front ends — public flags only, per-schema, never cached.
Control panel
The flags list, a flag's screen, the user screen, the audit log, permissions and settings.
Console commands
List, flip, check, purge and find stale flags from the command line.
FAQ
Craft 6 beta, project config, Pennant, multisite, guests and caching.
Troubleshooting
A flag isn't on when you expect, a page isn't gated, or the CP is read-only.