laravel:custom-helpers

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

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel:custom-helpers" with this command: npx skills add jpcaparas/superpowers-laravel/jpcaparas-superpowers-laravel-laravel-custom-helpers

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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel:routes-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:blade-components-and-layouts

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:queues-and-horizon

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:quality-checks

No summary provided by upstream source.

Repository SourceNeeds Review