laravel:custom-helpers

📁 jpcaparas/superpowers-laravel 📅 Jan 21, 2026
27
总安装量
17
周安装量
#13523
全站排名
安装命令
npx skills add https://github.com/jpcaparas/superpowers-laravel --skill laravel:custom-helpers

Agent 安装分布

claude-code 13
gemini-cli 9
opencode 9
windsurf 8
github-copilot 7

Skill 文档

Custom Helpers

Create a helper file

// app/Support/helpers.php
function money(int $cents): string { return number_format($cents / 100, 2); }

Autoload

Add to composer.json:

{
  "autoload": { "files": ["app/Support/helpers.php"] }
}

Run composer dump-autoload.

Guidelines

  • Keep helpers small and pure; avoid hidden IO/state
  • Prefer static methods on value objects when domain-specific