pennant-development

Manage Laravel Pennant feature flags with scoping, Blade gating, and testing.

483|116|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/trypostit/trypost --skill pennant-development-trypostit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pennant-development
Source: https://github.com/trypostit/trypost/tree/main/.claude/skills/pennant-development
Command: npx skills add https://github.com/trypostit/trypost --skill pennant-development-trypostit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pennant enables feature flag management in Laravel apps, allowing teams to gradually roll out changes, gate features, and experiment safely without deploying new code paths.

Core Features & Use Cases

  • Feature definition: declare flags in the application with per-feature logic and scope.
  • Active checks & gating: check active state in PHP and Blade to enable or disable functionality.
  • Scoping & governance: scope features to individual users, teams, or tenants for gradual rollouts.
  • Extensibility: support custom Pennant storage drivers and Blade directives.

Quick Start

Create a Pennant feature flag and guard a route with Blade to demonstrate a gradual rollout.

Frequently Asked Questions about pennant-development

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

FAQPage Schema
How do I manage Laravel Pennant feature flags for gradual rollouts?

You can manage Laravel Pennant feature flags by declaring them in app/Features with per-feature logic, then checking their active state in PHP and Blade to enable or disable functionality for gradual rollouts.

Can I scope Laravel feature flags to specific users or teams?

Yes, you can scope Laravel feature flags to individual users or teams for gradual rollouts. Pennant supports per-user and per-team scoping to control application behavior based on feature state.

How do I gate Blade templates using feature flags in Laravel?

You can gate Blade templates using feature flags by leveraging Pennant's Blade directives to check the active state of a feature, enabling or disabling functionality directly within your views.

Does Pennant support custom storage drivers for feature flags?

Yes, Pennant supports custom storage drivers for feature flags. You can configure custom storage backends to persist feature state according to your application's specific requirements.

What is the best way to test feature flag logic with Pest or PHPUnit?

The best way to test feature flag logic is by using Pennant's testing workflows with Pest or PHPUnit. You can assert feature states and active checks to ensure your gated application behavior functions correctly.

How do I protect Laravel routes with feature flags?

You can protect Laravel routes with feature flags by applying Pennant's active-state checks to route definitions. This restricts access to specific routes based on whether a feature is enabled.