You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is a huge difference when it comes to the sizes and complexity of the packages. And here is what I noticed.
Similarities
Registering event listeners
Both hook event listeners through traits with closures.
Recording the actor
Both log which user made the change but in very different ways.
Accessing the logs with subjects
Both offer a model that gives access to all activities with their subjects.
Log has descriptions
The activity description/action_name is one word (created, updated, deleted ...).
But you can edit it on Spatie's package.
Differences
SoftDeletes trait events
eloquent-logs is explicit with
SoftDeletes
trait events, so more accuracy (soft deleted, force deleted, and restored).Archiving
activitylog archives the model states by saving the changed attributes.
I don't want to cover that feature to keep the package lightweight.
Configuration
Which I plan on adding.
Beta Was this translation helpful? Give feedback.
All reactions