observers

Official

Centralised observers for model lifecycle events

Authorcodebar-ag
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Centralised observers provide reliable side effects by reacting to Laravel Eloquent model lifecycle events, ensuring actions like notifications, cache invalidation, and audit logging occur consistently regardless of where a model changes.

Core Features & Use Cases

  • Observers live in app/Observers and are named after the model they observe with an Observer suffix
  • Register observers in AppServiceProvider using the observe() method
  • Use observers for side effects that should always fire when a model changes
  • Do not place business logic inside observers; use an Action for that

Quick Start

Create an observer class for your model in app/Observers, implement the needed event methods, and register it with AppServiceProvider.

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: observers
Download link: https://github.com/codebar-ag/coding-guidelines/archive/main.zip#observers

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 223,000+ vetted skills library on demand.