Replies: 1 comment 1 reply
-
What does your package do that Spatie's isn't? https://spatie.be/docs/laravel-activitylog/v4/advanced-usage/logging-model-events |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a package that logs changes that happen on eloquent and I'm trying to figure out what to check to ignore the
updated
event whenrestored
.Here is the actions order if that helps:
Model::restore()
on theSoftDeletes
trait.restoring
is fired.Model::save()
saving
is fired.Model::performUpdate()
updating
is fired.Builder::update()
updated
is fired.Model::finishSave()
saved
is fired.restored
is fired.Original post: https://stackoverflow.com/questions/73158372/ignore-the-updated-event-when-an-eloquent-model-is-restored
Beta Was this translation helpful? Give feedback.
All reactions