重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
pennant-development by laravel/boost
npx skills add https://github.com/laravel/boost --skill pennant-development使用 search-docs 获取详细的 Pennant 模式与文档。
use Laravel\Pennant\Feature;
Feature::define('new-dashboard', function (User $user) {
return $user->isAdmin();
});
if (Feature::active('new-dashboard')) {
// 功能已激活
}
// 带作用域
if (Feature::for($user)->active('new-dashboard')) {
// 该功能对此用户已激活
}
@feature('new-dashboard')
<x-new-dashboard />
@else
<x-old-dashboard />
@endfeature
Feature::activate('new-dashboard');
Feature::for($user)->activate('new-dashboard');
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
每周安装量
56
代码仓库
GitHub 星标数
3.4K
首次出现时间
2026年1月28日
安全审计
已安装于
codex52
gemini-cli52
opencode52
claude-code51
github-copilot51
cursor51
Use search-docs for detailed Pennant patterns and documentation.
use Laravel\Pennant\Feature;
Feature::define('new-dashboard', function (User $user) {
return $user->isAdmin();
});
if (Feature::active('new-dashboard')) {
// Feature is active
}
// With scope
if (Feature::for($user)->active('new-dashboard')) {
// Feature is active for this user
}
@feature('new-dashboard')
<x-new-dashboard />
@else
<x-old-dashboard />
@endfeature
Feature::activate('new-dashboard');
Feature::for($user)->activate('new-dashboard');
Weekly Installs
56
Repository
GitHub Stars
3.4K
First Seen
Jan 28, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex52
gemini-cli52
opencode52
claude-code51
github-copilot51
cursor51
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
125,600 周安装