pennant-development

Manage Laravel feature flags with Pennant for definition, activation, and evaluation.

3.6k|357|Updated Jul 15, 2025
One-click install
npx skills add https://github.com/laravel/boost --skill pennant-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pennant-development
Source: https://github.com/laravel/boost/tree/main/.ai/pennant/skill/pennant-development
Command: npx skills add https://github.com/laravel/boost --skill pennant-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers manage feature flags efficiently using Laravel Pennant, enabling safe, configurable rollouts, A/B testing, and conditional UI rendering.

Core Features & Use Cases

  • Feature definition: Define flags using Laravel Pennant for controlled feature exposure.
  • Evaluation & scoping: Check feature status globally or scoped to a user or entity.
  • Blade integration: Use the @feature directive to conditionally render components.
  • Rollouts & experiments: Implement gradual rollouts and A/B tests to validate changes.

Quick Start

Use the pennant-development skill to define a 'new-dashboard' feature, check its status for a user, and toggle it on for your environment.

Frequently Asked Questions about pennant-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage feature flags in a Laravel application?

Feature flags in Laravel are managed using Laravel Pennant to define, activate, and evaluate feature toggles. This enables controlled feature exposure, safe rollouts, and conditional UI rendering across backend logic and blade templates.

How do I conditionally render UI components using feature flags?

You conditionally render UI components by using the @feature blade directive. This allows your blade templates to check the status of a defined feature flag and toggle component visibility safely based on activation rules.

Can I scope feature flag evaluation to a specific user?

Feature flag evaluation can be scoped globally or specifically to a user or entity. Laravel Pennant enables precise activation semantics, allowing you to check feature status for individual users to facilitate A/B testing.

What is the best way to run A/B tests and gradual rollouts in Laravel?

Gradual rollouts and A/B tests are implemented using Laravel Pennant to validate changes safely. You define specific feature flags, configure the rollout scope, and evaluate the toggle status to expose features progressively.

Do I need Laravel Pennant to control feature exposure during development?

Laravel Pennant is used to define and evaluate feature toggles for controlled feature exposure. It provides the activation semantics and blade directives needed to safely roll out and test features within your development workflow.

Why use a feature toggle management system instead of environment variables?

A feature toggle management system provides dynamic, scoped evaluation for A/B testing and gradual rollouts. Unlike static environment variables, Laravel Pennant allows you to check feature status per user or entity and conditionally render UI instantly.