skills/noartem/laravel-vue-skills/laravel-custom-helpers

laravel-custom-helpers

SKILL.md

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
Weekly Installs
14
GitHub Stars
5
First Seen
Jan 25, 2026
Installed on
codex14
gemini-cli12
opencode12
amp11
github-copilot11
cursor11