iserter/laravel-claude-agents/laravel-event-driven-architecture
Claude Code and agent skill by iserter/laravel-claude-agents
Trust tier 2
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Best practices for Laravel events and listeners including event discovery, queued listeners, subscribers, and model events for decoupled architecture.
Install
npx vskill@latest install iserter/laravel-claude-agents/laravel-event-driven-architectureSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Laravel Event-Driven Architecture
Event Class Structure
Listener Class Structure
Automatic Listener Discovery
Laravel auto-discovers listeners when they are in the App\Listeners directory and have a handle method type-hinting an event. No manual registration needed.
Dispatching Events
Queued Listeners
ShouldQueueAfterCommit
ShouldDispatchAfterCommit for Transaction Safety
Event Subscribers
Model Events and Observers
When to Use Events vs Direct Calls
Testing Events
Checklist
- [ ] Events are simple data-carrying objects (no business logic)
- [ ] Listeners have a single responsibility each
- [ ] Queued listeners used for slow operations (email, PDF, API calls)
- [ ] ShouldQueueAfterCommit or $afterCommit used for transaction safety
- [ ] Auto-discovery relied on instead of manual registration where possible
- [ ] Observers used sparingly and only for model lifecycle hooks
- [ ] Core business logic not hidden inside event listeners
- [ ] Events tested with Event::fake and assertDispatched
- [ ] Listeners tested in isolation with direct handle() calls
- [ ] shouldQueue() used to conditionally skip queuing
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/laravel-event-driven-architecture/SKILL.md
Popularity
- Repository stars
- 24
- Repository forks
- 5
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iserter/laravel-claude-agents/laravel-event-driven-architecture)