[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-laravel-pennant-development":3,"mdc--x9l5ul-key":34,"related-org-laravel-pennant-development":351,"related-repo-laravel-pennant-development":485},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":29,"sourceUrl":32,"mdContent":33},"pennant-development","manage feature flags with Laravel Pennant","Use when working with Laravel Pennant the official Laravel feature flag package. Trigger whenever the query mentions Pennant by name or involves feature flags or feature toggles in a Laravel project. Tasks include defining feature flags checking whether features are active creating class based features in `app\u002FFeatures` using Blade `@feature` directives scoping flags to users or teams building custom Pennant storage drivers protecting routes with feature flags testing feature flags with Pest or PHPUnit and implementing A B testing or gradual rollouts with feature flags. Do not trigger for generic Laravel configuration authorization policies authentication or non Pennant feature management systems.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"laravel","Laravel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Flaravel.png",[12,16,19],{"name":13,"slug":14,"type":15},"PHP","php","tag",{"name":17,"slug":18,"type":15},"Feature Flags","feature-flags",{"name":9,"slug":8,"type":15},585,"https:\u002F\u002Fgithub.com\u002Flaravel\u002Fpennant","2026-07-13T06:22:26.043758","MIT",63,[26,27,8,28],"feature","flags","pennant",{"repoUrl":21,"stars":20,"forks":24,"topics":30,"description":31},[26,27,8,28],"A simple, lightweight library for managing feature flags.","https:\u002F\u002Fgithub.com\u002Flaravel\u002Fpennant\u002Ftree\u002FHEAD\u002Fresources\u002Fboost\u002Fskills\u002Fpennant-development","---\nname: pennant-development\ndescription: \"Use when working with Laravel Pennant the official Laravel feature flag package. Trigger whenever the query mentions Pennant by name or involves feature flags or feature toggles in a Laravel project. Tasks include defining feature flags checking whether features are active creating class based features in `app\u002FFeatures` using Blade `@feature` directives scoping flags to users or teams building custom Pennant storage drivers protecting routes with feature flags testing feature flags with Pest or PHPUnit and implementing A B testing or gradual rollouts with feature flags. Do not trigger for generic Laravel configuration authorization policies authentication or non Pennant feature management systems.\"\nlicense: MIT\nmetadata:\n  author: laravel\n---\n# Pennant Features\n\n## Documentation\n\nUse `search-docs` for detailed Pennant patterns and documentation.\n\n## Basic Usage\n\n### Defining Features\n\n\u003C!-- Defining Features -->\n```php\nuse Laravel\\Pennant\\Feature;\n\nFeature::define('new-dashboard', function (User $user) {\n    return $user->isAdmin();\n});\n```\n\n### Checking Features\n\n\u003C!-- Checking Features -->\n```php\nif (Feature::active('new-dashboard')) {\n    \u002F\u002F Feature is active\n}\n\n\u002F\u002F With scope\nif (Feature::for($user)->active('new-dashboard')) {\n    \u002F\u002F Feature is active for this user\n}\n```\n\n### Blade Directive\n\n\u003C!-- Blade Directive -->\n```blade\n@feature('new-dashboard')\n    \u003Cx-new-dashboard \u002F>\n@else\n    \u003Cx-old-dashboard \u002F>\n@endfeature\n```\n\n### Activating \u002F Deactivating\n\n\u003C!-- Activating Features -->\n```php\nFeature::activate('new-dashboard');\nFeature::for($user)->activate('new-dashboard');\n```\n\n## Verification\n\n1. Check feature flag is defined\n2. Test with different scopes\u002Fusers\n\n## Common Pitfalls\n\n- Forgetting to scope features for specific users\u002Fentities\n- Not following existing naming conventions\n",{"data":35,"body":37},{"name":4,"description":6,"license":23,"metadata":36},{"author":8},{"type":38,"children":39},"root",[40,49,56,71,77,84,142,148,220,226,275,281,304,310,325,331,345],{"type":41,"tag":42,"props":43,"children":45},"element","h1",{"id":44},"pennant-features",[46],{"type":47,"value":48},"text","Pennant Features",{"type":41,"tag":50,"props":51,"children":53},"h2",{"id":52},"documentation",[54],{"type":47,"value":55},"Documentation",{"type":41,"tag":57,"props":58,"children":59},"p",{},[60,62,69],{"type":47,"value":61},"Use ",{"type":41,"tag":63,"props":64,"children":66},"code",{"className":65},[],[67],{"type":47,"value":68},"search-docs",{"type":47,"value":70}," for detailed Pennant patterns and documentation.",{"type":41,"tag":50,"props":72,"children":74},{"id":73},"basic-usage",[75],{"type":47,"value":76},"Basic Usage",{"type":41,"tag":78,"props":79,"children":81},"h3",{"id":80},"defining-features",[82],{"type":47,"value":83},"Defining Features",{"type":41,"tag":85,"props":86,"children":90},"pre",{"className":87,"code":88,"language":14,"meta":89,"style":89},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use Laravel\\Pennant\\Feature;\n\nFeature::define('new-dashboard', function (User $user) {\n    return $user->isAdmin();\n});\n","",[91],{"type":41,"tag":63,"props":92,"children":93},{"__ignoreMap":89},[94,105,115,124,133],{"type":41,"tag":95,"props":96,"children":99},"span",{"class":97,"line":98},"line",1,[100],{"type":41,"tag":95,"props":101,"children":102},{},[103],{"type":47,"value":104},"use Laravel\\Pennant\\Feature;\n",{"type":41,"tag":95,"props":106,"children":108},{"class":97,"line":107},2,[109],{"type":41,"tag":95,"props":110,"children":112},{"emptyLinePlaceholder":111},true,[113],{"type":47,"value":114},"\n",{"type":41,"tag":95,"props":116,"children":118},{"class":97,"line":117},3,[119],{"type":41,"tag":95,"props":120,"children":121},{},[122],{"type":47,"value":123},"Feature::define('new-dashboard', function (User $user) {\n",{"type":41,"tag":95,"props":125,"children":127},{"class":97,"line":126},4,[128],{"type":41,"tag":95,"props":129,"children":130},{},[131],{"type":47,"value":132},"    return $user->isAdmin();\n",{"type":41,"tag":95,"props":134,"children":136},{"class":97,"line":135},5,[137],{"type":41,"tag":95,"props":138,"children":139},{},[140],{"type":47,"value":141},"});\n",{"type":41,"tag":78,"props":143,"children":145},{"id":144},"checking-features",[146],{"type":47,"value":147},"Checking Features",{"type":41,"tag":85,"props":149,"children":151},{"className":87,"code":150,"language":14,"meta":89,"style":89},"if (Feature::active('new-dashboard')) {\n    \u002F\u002F Feature is active\n}\n\n\u002F\u002F With scope\nif (Feature::for($user)->active('new-dashboard')) {\n    \u002F\u002F Feature is active for this user\n}\n",[152],{"type":41,"tag":63,"props":153,"children":154},{"__ignoreMap":89},[155,163,171,179,186,194,203,212],{"type":41,"tag":95,"props":156,"children":157},{"class":97,"line":98},[158],{"type":41,"tag":95,"props":159,"children":160},{},[161],{"type":47,"value":162},"if (Feature::active('new-dashboard')) {\n",{"type":41,"tag":95,"props":164,"children":165},{"class":97,"line":107},[166],{"type":41,"tag":95,"props":167,"children":168},{},[169],{"type":47,"value":170},"    \u002F\u002F Feature is active\n",{"type":41,"tag":95,"props":172,"children":173},{"class":97,"line":117},[174],{"type":41,"tag":95,"props":175,"children":176},{},[177],{"type":47,"value":178},"}\n",{"type":41,"tag":95,"props":180,"children":181},{"class":97,"line":126},[182],{"type":41,"tag":95,"props":183,"children":184},{"emptyLinePlaceholder":111},[185],{"type":47,"value":114},{"type":41,"tag":95,"props":187,"children":188},{"class":97,"line":135},[189],{"type":41,"tag":95,"props":190,"children":191},{},[192],{"type":47,"value":193},"\u002F\u002F With scope\n",{"type":41,"tag":95,"props":195,"children":197},{"class":97,"line":196},6,[198],{"type":41,"tag":95,"props":199,"children":200},{},[201],{"type":47,"value":202},"if (Feature::for($user)->active('new-dashboard')) {\n",{"type":41,"tag":95,"props":204,"children":206},{"class":97,"line":205},7,[207],{"type":41,"tag":95,"props":208,"children":209},{},[210],{"type":47,"value":211},"    \u002F\u002F Feature is active for this user\n",{"type":41,"tag":95,"props":213,"children":215},{"class":97,"line":214},8,[216],{"type":41,"tag":95,"props":217,"children":218},{},[219],{"type":47,"value":178},{"type":41,"tag":78,"props":221,"children":223},{"id":222},"blade-directive",[224],{"type":47,"value":225},"Blade Directive",{"type":41,"tag":85,"props":227,"children":231},{"className":228,"code":229,"language":230,"meta":89,"style":89},"language-blade shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","@feature('new-dashboard')\n    \u003Cx-new-dashboard \u002F>\n@else\n    \u003Cx-old-dashboard \u002F>\n@endfeature\n","blade",[232],{"type":41,"tag":63,"props":233,"children":234},{"__ignoreMap":89},[235,243,251,259,267],{"type":41,"tag":95,"props":236,"children":237},{"class":97,"line":98},[238],{"type":41,"tag":95,"props":239,"children":240},{},[241],{"type":47,"value":242},"@feature('new-dashboard')\n",{"type":41,"tag":95,"props":244,"children":245},{"class":97,"line":107},[246],{"type":41,"tag":95,"props":247,"children":248},{},[249],{"type":47,"value":250},"    \u003Cx-new-dashboard \u002F>\n",{"type":41,"tag":95,"props":252,"children":253},{"class":97,"line":117},[254],{"type":41,"tag":95,"props":255,"children":256},{},[257],{"type":47,"value":258},"@else\n",{"type":41,"tag":95,"props":260,"children":261},{"class":97,"line":126},[262],{"type":41,"tag":95,"props":263,"children":264},{},[265],{"type":47,"value":266},"    \u003Cx-old-dashboard \u002F>\n",{"type":41,"tag":95,"props":268,"children":269},{"class":97,"line":135},[270],{"type":41,"tag":95,"props":271,"children":272},{},[273],{"type":47,"value":274},"@endfeature\n",{"type":41,"tag":78,"props":276,"children":278},{"id":277},"activating-deactivating",[279],{"type":47,"value":280},"Activating \u002F Deactivating",{"type":41,"tag":85,"props":282,"children":284},{"className":87,"code":283,"language":14,"meta":89,"style":89},"Feature::activate('new-dashboard');\nFeature::for($user)->activate('new-dashboard');\n",[285],{"type":41,"tag":63,"props":286,"children":287},{"__ignoreMap":89},[288,296],{"type":41,"tag":95,"props":289,"children":290},{"class":97,"line":98},[291],{"type":41,"tag":95,"props":292,"children":293},{},[294],{"type":47,"value":295},"Feature::activate('new-dashboard');\n",{"type":41,"tag":95,"props":297,"children":298},{"class":97,"line":107},[299],{"type":41,"tag":95,"props":300,"children":301},{},[302],{"type":47,"value":303},"Feature::for($user)->activate('new-dashboard');\n",{"type":41,"tag":50,"props":305,"children":307},{"id":306},"verification",[308],{"type":47,"value":309},"Verification",{"type":41,"tag":311,"props":312,"children":313},"ol",{},[314,320],{"type":41,"tag":315,"props":316,"children":317},"li",{},[318],{"type":47,"value":319},"Check feature flag is defined",{"type":41,"tag":315,"props":321,"children":322},{},[323],{"type":47,"value":324},"Test with different scopes\u002Fusers",{"type":41,"tag":50,"props":326,"children":328},{"id":327},"common-pitfalls",[329],{"type":47,"value":330},"Common Pitfalls",{"type":41,"tag":332,"props":333,"children":334},"ul",{},[335,340],{"type":41,"tag":315,"props":336,"children":337},{},[338],{"type":47,"value":339},"Forgetting to scope features for specific users\u002Fentities",{"type":41,"tag":315,"props":341,"children":342},{},[343],{"type":47,"value":344},"Not following existing naming conventions",{"type":41,"tag":346,"props":347,"children":348},"style",{},[349],{"type":47,"value":350},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":352,"total":484},[353,370,384,399,416,433,445,451,468],{"slug":354,"name":354,"fn":355,"description":356,"org":357,"tags":358,"stars":367,"repoUrl":368,"updatedAt":369},"socialite-development","integrate OAuth social authentication","Manages OAuth social authentication with Laravel Socialite. Activate when adding social login providers; configuring OAuth redirect\u002Fcallback flows; retrieving authenticated user details; customizing scopes or parameters; setting up community providers; testing with Socialite fakes; or when the user mentions social login, OAuth, Socialite, or third-party authentication.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[359,362,363,366],{"name":360,"slug":361,"type":15},"Auth","auth",{"name":9,"slug":8,"type":15},{"name":364,"slug":365,"type":15},"OAuth","oauth",{"name":13,"slug":14,"type":15},5745,"https:\u002F\u002Fgithub.com\u002Flaravel\u002Fsocialite","2026-07-13T06:22:10.648812",{"slug":371,"name":371,"fn":372,"description":373,"org":374,"tags":375,"stars":381,"repoUrl":382,"updatedAt":383},"octane-development","develop applications with Laravel Octane","Use this skill when working with Laravel Octane, a long-running PHP worker server (Swoole, FrankenPHP, RoadRunner) where the application boots once and serves many requests instead of rebooting for each request like PHP-FPM. Trigger when installing Octane or starting its server; configuring or detecting the active driver for driver-specific code; using Octane::concurrently(), Octane::table(), the Octane cache, or shared in-memory state across workers; controlling worker memory growth; or testing Octane behavior. Skip plain PHP-FPM applications with no persistent worker.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[376,377,380],{"name":9,"slug":8,"type":15},{"name":378,"slug":379,"type":15},"Performance","performance",{"name":13,"slug":14,"type":15},4021,"https:\u002F\u002Fgithub.com\u002Flaravel\u002Foctane","2026-07-16T06:02:20.284131",{"slug":385,"name":385,"fn":386,"description":387,"org":388,"tags":389,"stars":396,"repoUrl":397,"updatedAt":398},"fortify-development","implement authentication with Laravel Fortify","ACTIVATE when the user works on authentication in Laravel. This includes login, registration, password reset, email verification, two-factor authentication (2FA\u002FTOTP\u002FQR codes\u002Frecovery codes), passkeys, profile updates, password confirmation, or any auth-related routes and controllers. Activate when the user mentions Fortify, auth, authentication, login, register, signup, forgot password, verify email, 2FA, passkeys, WebAuthn, or references app\u002FActions\u002FFortify\u002F, CreateNewUser, UpdateUserProfileInformation, FortifyServiceProvider, config\u002Ffortify.php, or auth guards. Fortify is the frontend-agnostic authentication backend for Laravel that registers all auth routes and controllers. Also activate when building SPA or headless authentication, customizing login redirects, overriding response contracts like LoginResponse, or configuring login throttling. Do NOT activate for Laravel Passport (OAuth2 API tokens), Socialite (OAuth social login), or non-auth Laravel features.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[390,393,394,395],{"name":391,"slug":392,"type":15},"2FA","2fa",{"name":360,"slug":361,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},1746,"https:\u002F\u002Fgithub.com\u002Flaravel\u002Ffortify","2026-07-13T06:22:28.612049",{"slug":400,"name":400,"fn":401,"description":402,"org":403,"tags":404,"stars":413,"repoUrl":414,"updatedAt":415},"ai-sdk-development","build AI agents with Laravel AI SDK","TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK. Activate when building, editing AI agents, chatbots, text generation, image generation, audio\u002FTTS, transcription\u002FSTT, embeddings, RAG, vector stores, reranking, structured output, streaming, conversation memory, tools, queueing, broadcasting, and provider failover across OpenAI, Anthropic, Gemini, Azure, Groq, xAI, DeepSeek, Mistral, Ollama, ElevenLabs, Cohere, Jina, and VoyageAI. Invoke when the user references ai-sdk, the `Laravel\\Ai\\` namespace, or this project's AI features — not for other AI packages used directly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[405,408,411,412],{"name":406,"slug":407,"type":15},"Agents","agents",{"name":409,"slug":410,"type":15},"AI SDK","ai-sdk",{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},1040,"https:\u002F\u002Fgithub.com\u002Flaravel\u002Fai","2026-07-13T06:22:24.770526",{"slug":417,"name":417,"fn":418,"description":419,"org":420,"tags":421,"stars":430,"repoUrl":431,"updatedAt":432},"deploying-laravel-cloud","deploy Laravel applications to Laravel Cloud","Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to cloud, create\u002Fmanage environments, databases, caches, domains, instances, background processes, check billing\u002Fusage\u002Fspend, or any Laravel Cloud infrastructure. Triggers on deploy, ship, cloud management, environment setup, database provisioning, billing\u002Fusage queries, and similar cloud operations.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[422,425,428,429],{"name":423,"slug":424,"type":15},"CLI","cli",{"name":426,"slug":427,"type":15},"Deployment","deployment",{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},665,"https:\u002F\u002Fgithub.com\u002Flaravel\u002Fagent-skills","2026-07-13T06:22:18.36234",{"slug":434,"name":434,"fn":435,"description":436,"org":437,"tags":438,"stars":430,"repoUrl":431,"updatedAt":444},"starter-kit-upgrade","upgrade Laravel starter kit projects","Selectively pull upstream improvements from a Laravel starter kit (laravel\u002Fvue-starter-kit, laravel\u002Freact-starter-kit, laravel\u002Fsvelte-starter-kit, laravel\u002Flivewire-starter-kit) into a project bootstrapped from one. Use when the user wants to update, sync, or migrate features from their starter kit. Applies one feature at a time on a dedicated branch; never auto-merges customized files.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[439,440,443],{"name":9,"slug":8,"type":15},{"name":441,"slug":442,"type":15},"Maintenance","maintenance",{"name":13,"slug":14,"type":15},"2026-07-13T06:22:11.972952",{"slug":4,"name":4,"fn":5,"description":6,"org":446,"tags":447,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[448,449,450],{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15},{"slug":452,"name":452,"fn":453,"description":454,"org":455,"tags":456,"stars":465,"repoUrl":466,"updatedAt":467},"configure-nightwatch","configure Laravel Nightwatch data collection","Configures Laravel Nightwatch data collection, sampling rates, filtering rules, and redaction policies. Use when setting up Nightwatch, managing data volume, protecting sensitive data (PII), or optimizing event collection for production workloads.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[457,460,461,464],{"name":458,"slug":459,"type":15},"Configuration","configuration",{"name":9,"slug":8,"type":15},{"name":462,"slug":463,"type":15},"Observability","observability",{"name":13,"slug":14,"type":15},368,"https:\u002F\u002Fgithub.com\u002Flaravel\u002Fnightwatch","2026-07-13T06:22:29.945491",{"slug":469,"name":469,"fn":453,"description":470,"org":471,"tags":472,"stars":481,"repoUrl":482,"updatedAt":483},"nightwatch-configure","Configure Laravel Nightwatch data collection, sampling rates, filtering rules, and redaction policies. Use this when setting up Nightwatch, managing data volume, protecting sensitive data (PII), or optimizing event collection for production workloads.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[473,474,475,478],{"name":458,"slug":459,"type":15},{"name":9,"slug":8,"type":15},{"name":476,"slug":477,"type":15},"Monitoring","monitoring",{"name":479,"slug":480,"type":15},"Privacy","privacy",0,"https:\u002F\u002Fgithub.com\u002Flaravel\u002Fnightwatch-cursor-plugin","2026-07-16T06:02:16.946147",9,{"items":486,"total":98},[487],{"slug":4,"name":4,"fn":5,"description":6,"org":488,"tags":489,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[490,491,492],{"name":17,"slug":18,"type":15},{"name":9,"slug":8,"type":15},{"name":13,"slug":14,"type":15}]