helper-creation

Create and organize Laravel helper classes using the make:helper artisan command.

Updated Sep 19, 2026
One-click install
npx skills add https://github.com/idehen-divine/lumished --skill helper-creation-idehen-divine
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: helper-creation
Source: https://github.com/idehen-divine/lumished/tree/main/.agents/skills/helper-creation
Command: npx skills add https://github.com/idehen-divine/lumished --skill helper-creation-idehen-divine

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill removes the guesswork from creating reusable helper classes in Laravel applications by providing the correct artisan commands, naming conventions, directory structures, and implementation patterns for the Laravel Dynamic Helpers package. ## Core Features & Use Cases - Helper Generation: Generate helper classes with php artisan make:helper, including nested helpers like Store/CreateHelper that auto-create directory structures. - Dependency Injection: Build helpers with constructor-injected repositories and services that resolve automatically from the Laravel container. - Common Patterns: Apply ready-made templates for API response formatting, data transformation, currency handling, and business logic helpers. - Use Case: Imagine you need a permission-checking utility across your app. Use this Skill to generate a PermissionHelper with injected repositories, then call permissionHelper()->can('edit-posts') anywhere in controllers or middleware. ## Quick Start Ask the AI to create a new Laravel helper class named MoneyHelper with a format method using the make:helper artisan command.

Frequently Asked Questions about helper-creation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a helper class in Laravel?▼

Run `php artisan make:helper MoneyHelper` to generate a helper class in `app/Helpers/`. The class extends the Helper base class and is automatically registered as a global function like `moneyHelper()`.

How to organize Laravel helpers into nested directories?▼

Pass a path to the make:helper command, such as `php artisan make:helper Store/CreateHelper`, and the full directory structure is created automatically. The function name becomes `storeCreateHelper()`.

Can Laravel helpers use dependency injection?▼

Yes, helpers support constructor injection of repositories and services. Dependencies are automatically resolved from the Laravel service container when the helper function is called.

What naming conventions should Laravel helper classes follow?▼

Helper classes use PascalCase with a Helper suffix, such as MoneyHelper or PermissionHelper. Methods use camelCase, and nested helpers produce concatenated function names like adminUserPermissionHelper().

How do I add methods to an existing Laravel helper?▼

Edit the helper file and add new public methods directly. The new methods are instantly available through the registered helper function without any additional registration or configuration.