pennant-development

Manage Laravel Pennant feature flags with scoped toggles and Blade directives.

1.5k|170|Updated Sep 25, 2024
One-click install
npx skills add https://github.com/relaticle/relaticle --skill pennant-development-relaticle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pennant-development
Source: https://github.com/relaticle/relaticle/tree/main/.claude/skills/pennant-development
Command: npx skills add https://github.com/relaticle/relaticle --skill pennant-development-relaticle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pennant is the official Laravel feature flag package. This skill helps teams manage feature flags across Laravel apps, enabling granular rollout and user- or team-scoped toggles without modifying core logic manually.

Core Features & Use Cases

  • Define features in app/Features using Pennant::define and control activation with Feature::active or Feature::for scopes.
  • Protect routes and UI with Blade directives like @feature to tailor experiences per user or group.
  • Implement A/B testing, gradual rollouts, and custom storage drivers for Pennant across different environments.

Quick Start

Define a feature in app/Features and check its status with Feature::active in your controllers or views.

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 user or team scoped rollouts?

To manage Laravel Pennant feature flags, you define features using Pennant::define and control activation with Feature::active or Feature::for scopes. This enables granular rollout and user- or team-scoped toggles without modifying core logic manually.

How do I use Blade directives to control feature flag UI visibility in Laravel?

You control feature flag UI visibility in Laravel using Blade directives like @feature to tailor experiences per user or group. This protects routes and UI elements based on the active status of your Pennant feature flags.

How do I test Laravel Pennant feature flag behavior with Pest or PHPUnit?

You test Laravel Pennant feature flag behavior by verifying flag activation within your Pest or PHPUnit tests. This ensures your feature toggles, scoping by user or team, and route protection logic function as expected during rollouts.

What is the best way to define features in Laravel Pennant for gradual rollouts?

The best way to define features for gradual rollouts is using Pennant::define in your app/Features directory. You then check feature status with Feature::active in controllers or views to control feature availability per scope.

Can I use Laravel Pennant to protect routes based on feature flag activation?

You can protect routes based on feature flag activation by integrating Laravel Pennant with your route logic. Use Feature::active in controllers or Blade directives to restrict access and tailor the user experience for specific groups.