DEV Community

Discussion on: Laravel custom Pivot Model events (many-to-many relationship)

Collapse
nijibemani profile image
Niji • Edited on

It seems you don't have to register model events in EventServiceProvider.
When I did that, my listener fired two times!

EDIT : my bad, I sat shouldDiscoverEvents() to true in EventServiceProvider.