laravel-actions

Automate creation and management of Laravel action classes.

1|Updated May 24, 2026
One-click install
npx skills add https://github.com/PTKDrake/FIT-vmu --skill laravel-actions-ptkdrake
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-actions
Source: https://github.com/PTKDrake/FIT-vmu/tree/main/.agents/skills/laravel-actions
Command: npx skills add https://github.com/PTKDrake/FIT-vmu --skill laravel-actions-ptkdrake

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires laravel, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a structured approach to Laravel's domain logic, enabling efficient action-oriented architecture for creating, modifying, and managing actions, business logic, or domain operations.

Core Features & Use Cases

  • Action-Oriented Architecture: Encapsulate domain logic in invokable classes for clear, maintainable code.
  • Composable Workflows: Build complex workflows by chaining actions together.
  • Type-Safe & Transactional: Ensure code reliability with strict typing and database transactions.
  • Use Case: When developing a Laravel application, use this Skill to create actions for user registration, order processing, or payment handling, ensuring that each action is responsible for a single task.

Quick Start

Use the laravel-actions skill to create a new action for user registration by running the command: php artisan make:action RegisterUserAction

Frequently Asked Questions about laravel-actions

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

FAQPage Schema
How do I structure business logic in Laravel using action-oriented architecture?

Action-oriented architecture structures business logic by encapsulating domain operations in invokable classes. This approach ensures clear separation of concerns and maintainable code for scalable Laravel applications.

What is the best way to create domain-driven actions in Laravel?

The best way to create domain-driven actions is using the command: php artisan make:action. This generates a class to encapsulate a single task, such as user registration or order processing, ensuring type safety.

Can I build composable workflows by chaining Laravel actions together?

Yes, you can build composable workflows by chaining actions together. This enables complex domain operations while maintaining strict typing and database transactions for reliable Laravel workflows.

Do I need the Laravel framework to use domain-driven actions?

Yes, you need the Laravel framework and PHP for execution. This approach automates the creation and management of domain operations, requiring Laravel to function properly.

When should I use action classes instead of standard controllers for domain logic?

Use action classes when you need clear separation of concerns for complex domain logic. They are suitable for scalable applications where each action must be responsible for a single task, ensuring maintainable workflows.

Why does separating domain logic into actions improve Laravel application scalability?

Separating domain logic into actions improves scalability by isolating business operations into single-responsibility classes. This ensures type-safe, transactional code that keeps complex workflows clear and maintainable.