Actions Events

Action + event pattern for AdonisJS. Actions are single-purpose classes with `.handle(input)`; they never touch `HttpContext` and never call side-effect code (mail, notifications, transmit) directly — they emit a domain event and a listener wired in `<mod>/start/events.ts` runs the effect. Use when adding a new action, wiring a domain event, or when a listener is what should call mail/notification/transmit. Trigger on: "create action", "emit event", "add listener", "domain event".

filipebraida 678afc3 7.4 KB Updated

File contents

filipebraida/adonisjs-starter-kit/tree/main/packages/skills/actions-events commit 678afc3579

Frequently asked questions

npx skillmds@latest add filipebraida/actions-events