genealabs/laravel-pivot-events
Adds pivot table events to Laravel many-to-many relationships, firing PivotAttached, PivotDetached, PivotUpdated, and PivotSaved so you can hook into attach, detach, and update operations using listeners, observers, or custom pivot models.
Laravel Pivot Events adds Eloquent-style model events to many-to-many pivot records, so you can react when relationships are attached, detached, or updated. It provides a pivot model base class that dispatches events for pivot changes, bringing the same observer/listener workflow to junction-table data.
Pivot class for seamless Eloquent integrationHow can I help you explore Laravel packages today?