scaffold-observer
Installation
SKILL.md
Laravel Observer Pattern Skill
Use this skill when you need to trigger logic based on Eloquent Model events (created, updated, deleted, etc.).
When to use
- Sending emails after user registration.
- Logging changes for audit entry.
- Updating summary tables.
Rules
1. Silent Handling
- Observers should handle exceptions gracefully or let them bubble up depending on criticality.
- Avoid putting slow blocking logic (like API calls) directly in Observer. Dispatch a Job/Event instead.