0008-laravel-actions

Community

Centralize Laravel domain logic in actions.

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the problem of scattered business logic across controllers, jobs, and listeners by making domain operations live in dedicated Laravel action classes.

Core Features & Use Cases

  • Invokable action classes with a single __invoke() entry point for consistent, composable domain behavior.
  • Transactional, stateless workflows that wrap database modifications in DB::transaction() to keep state changes reliable.
  • Action composition and guardrails where actions call other actions for workflows and validate domain rules before mutating data (including throwing domain exceptions).
  • Use cases: create/update business entities (including multi-step workflows), enforce domain constraints (e.g., cancellation rules), and coordinate side effects like notifications and external service calls from a domain-centric place.

Quick Start

Create an invokable action class (e.g., CreateOrderAction) that accepts your domain inputs, validates rules, performs model changes inside DB::transaction(), and returns the updated model.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0008-laravel-actions
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0008-laravel-actions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.