重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
laravel%3Aeloquent-relationships by jpcaparas/superpowers-laravel
npx skills add https://github.com/jpcaparas/superpowers-laravel --skill laravel:eloquent-relationships模型关联表达您的领域逻辑;仅加载所需数据。
# 典型加载方式
Post::with(['author', 'tags'])->withCount('comments')->paginate(20);
# 约束预加载
User::with(['posts' => fn($q) => $q->latest()->where('published', true)])->find($id);
# 中间表操作(多对多关联)
$post->tags()->sync([1,2,3]); // 原子性替换
$post->tags()->syncWithoutDetaching([4]);
# 大数据分块读取
Order::where('status', 'open')->lazy()->each(fn($o) => ...);
laravel:performance-eager-loading 以了解 N+1 问题检测与测量whereHas() / has() 根据关联存在性进行筛选withCount、withSum、广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
withMax每周安装量
54
代码仓库
GitHub 星标数
122
首次出现时间
2026年1月21日
安装于
claude-code39
gemini-cli37
cursor36
opencode36
codex33
github-copilot31
Model relationships express your domain; load only what you need.
# Typical loading
Post::with(['author', 'tags'])->withCount('comments')->paginate(20);
# Constrained eager loading
User::with(['posts' => fn($q) => $q->latest()->where('published', true)])->find($id);
# Pivot ops (many-to-many)
$post->tags()->sync([1,2,3]); // atomic replace
$post->tags()->syncWithoutDetaching([4]);
# Chunking large reads
Order::where('status', 'open')->lazy()->each(fn($o) => ...);
laravel:performance-eager-loading for N+1 detection and measurementwhereHas() / has() to filter by related existencewithCount, withSum, withMax for simple aggregatesWeekly Installs
54
Repository
GitHub Stars
122
First Seen
Jan 21, 2026
Installed on
claude-code39
gemini-cli37
cursor36
opencode36
codex33
github-copilot31
Firestore 基础入门指南 - 配置、安全规则、SDK 使用与索引优化
1,300 周安装
Tinybird TypeScript SDK 指南:使用@tinybirdco/sdk实现类型安全的数据管道开发
281 周安装
Git提交规则:使用/commit技能移除Claude归属信息,生成推理记录,优化Git工作流
282 周安装
写作技能:基于测试驱动开发的AI代理文档编写指南
280 周安装
阿里云CLI技能:官方aliyun命令行工具安装配置与自动化运维指南
278 周安装
E2E测试自动化指南:Playwright/Cypress/Selenium实战与最佳实践
280 周安装
Tinybird CLI 指南:本地开发、部署与数据操作完整教程
283 周安装