laravel-actions

Installation
SKILL.md

Laravel Actions or lorisleiva/laravel-actions

Overview

Use this skill to implement or update actions based on lorisleiva/laravel-actions with consistent structure and predictable testing patterns.

Quick Workflow

  1. Confirm the package is installed with composer show lorisleiva/laravel-actions.
  2. Create or edit an action class that uses Lorisleiva\Actions\Concerns\AsAction.
  3. Implement handle(...) with the core business logic first.
  4. Add adapter methods only when needed for the requested entrypoint:
    • asController (+ route/invokable controller usage)
    • asJob (+ dispatch)
    • asListener (+ event listener wiring)
    • asCommand (+ command signature/description)
  5. Add or update tests for the chosen entrypoint.
  6. When tests need isolation, use action fakes (MyAction::fake()) and assertions (MyAction::assertDispatched()).
Related skills

More from coollabsio/coolify

Installs
6
GitHub Stars
55.2K
First Seen
Apr 6, 2026