laravel-custom-helpers

v2026.09.24

Create and register small, pure helper functions when they improve clarity; keep them organized and tested

GitHub
安装命令
npx skhub add noartem/laravel-custom-helpers
Markdown
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
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

未指定

源路径

skills/laravel-custom-helpers

默认分支

main

最新提交

0002f35

Tree SHA

3db1f86