eloquent-versioning
eloquent-versioning copied to clipboard
How to create new version only if something changed?
Is there way for create new version just if model isDirty()?
Hello @UksusoFF
Are you seeing this with all updates, or just when updating a non-versioned attribute?
Also, please note that if you have the 'updated_at' on your versioned table that this does get updated and triggers a new version.
As I remember it's create new version on each save. Without check changes.
I'm using $model->timestamps = false for not touching updated_at.
Please close issue if this is wrong.
I found similar package which fully suitable for me: https://github.com/venturecraft/revisionable