eloquent-versioning icon indicating copy to clipboard operation
eloquent-versioning copied to clipboard

How to create new version only if something changed?

Open UksusoFF opened this issue 8 years ago • 2 comments

Is there way for create new version just if model isDirty()?

UksusoFF avatar Oct 26 '17 18:10 UksusoFF

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.

crashkonijn avatar May 23 '18 21:05 crashkonijn

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

UksusoFF avatar May 25 '18 13:05 UksusoFF