This skill helps you manage Laravel Pennant feature flags, enabling targeted rollouts, A/B testing, and conditional UI with ease.
npx playbooks add skill laravel/boost --skill pennant-development
Use search-docs for detailed Pennant patterns and documentation.
<!-- Defining Features -->
use Laravel\Pennant\Feature;
Feature::define('new-dashboard', function (User $user) {
return $user->isAdmin();
});
<!-- Checking Features -->
if (Feature::active('new-dashboard')) {
// Feature is active
}
// With scope
if (Feature::for($user)->active('new-dashboard')) {
// Feature is active for this user
}
<!-- Blade Directive -->
@feature('new-dashboard')
<x-new-dashboard />
@else
<x-old-dashboard />
@endfeature
<!-- Activating Features -->
Feature::activate('new-dashboard');
Feature::for($user)->activate('new-dashboard');
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.