laravel-actions

Encapsulate Laravel domain logic into standalone invokable Action classes.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-actions-sivanwol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-actions
Source: https://github.com/Sivanwol/sabo-platfom/tree/main/.ai/skills/laravel-actions
Command: npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-actions-sivanwol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Actions encapsulate the core domain logic in Laravel applications, keeping controllers lean by moving business rules into dedicated invokable classes.

Core Features & Use Cases

  • Isolate domain operations into small, single-responsibility actions.
  • Compose complex workflows by injecting and invoking multiple actions.
  • Enforce guard validations and transactional integrity around data changes.
  • Facilitate testing by enabling unit tests of actions in isolation.

Quick Start

Create and invoke an Action class to encapsulate a domain operation in a transactional workflow.

Frequently Asked Questions about laravel-actions

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

FAQPage Schema
How do I organize Laravel domain logic to keep controllers lean?

Organize Laravel domain logic by encapsulating business rules into standalone, invokable Action classes. This isolates operations, moving complex orchestration out of controllers into dedicated, single-responsibility classes that can be reused across jobs and commands.

How do I unit test Laravel business logic in isolation?

Unit test Laravel business logic by isolating operations into invokable Action classes. Extracting domain operations into standalone actions enables you to test business rules directly without booting the entire application or simulating HTTP requests.

What is the best way to manage transactional data changes in Laravel workflows?

Manage transactional data changes in Laravel workflows by encapsulating operations within Action classes. Actions enforce transactional integrity around data modifications, ensuring complex business operations execute safely within a single database transaction boundary.

Can I reuse the same business operation across Laravel controllers, jobs, and commands?

Yes, you can reuse business operations across Laravel controllers, jobs, and commands by extracting them into standalone Action classes. Invokable actions centralize domain logic, allowing you to inject and invoke the exact same operation from any entry point.

How do you compose complex Laravel workflows from multiple operations?

Compose complex Laravel workflows by injecting and invoking multiple standalone Action classes within a parent action or controller. Using dependency injection, you can orchestrate various single-responsibility actions together to execute intricate domain operations.