tag
3 years ago
1360
14
Eloquent

Listen to *any* save/update/create event for *any* model?

Posted 3 years ago by tag

I want to listen for any time a model changes, and I don't care what model it is. I don't want to have to set up a listener for every model, so I'd like to be able to just listen to a generic Model::saved(...) event.

Does such a thing exist?

Please sign in or create an account to participate in this conversation.