# Laravel Custom Helpers

> Custom Helpers

- Skill: `comeonoliver/laravel-custom-helpers` (Agent Skill)
- Install (CLI): `npx skillmds@latest add comeonoliver/laravel-custom-helpers`
- Raw SKILL.md: https://api.skillmd.com/api/skills/comeonoliver/laravel-custom-helpers/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ComeOnOliver (https://skillmd.com/u/comeonoliver)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/comeonoliver/laravel-custom-helpers

---

# Custom Helpers

## Create a helper file

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

## Autoload

Add to `composer.json`:

```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

