Laravel custom helpers
Skill ComeOnOliver/skillshub/skills/noartem/skills/laravel-custom-helpers
🧠The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.From the repository description
npx -y skills add ComeOnOliver/skillshub --skill laravel-custom-helpersAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.4 KB, 110 tokens by cl100k_base, as published. Nobody here has run it
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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.