WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

how to skip updated_at being logged as only column when other excepted columns gets changed #1400

@Toylycker

Description

@Toylycker

Describe the bug
updated_at column comes in logs even though it is set not to do that when only along. I set that user password change not to be logged together with setting that updated_at column changes also no need to be logged. But when user changes password i see that password change is not logged but yet the record of updated_at change is saved in log.

To Reproduce
make a trait HasActivityLogDefiner:

Image

then make your user use HasActivityLogDefiner trait. when user changes password you will anyway see log being saved with only updated_at changed

Expected behavior
i understand that it means only if updated_at changes only would not log, but how to prevent cases where columns log of which we don't need gets changed and updated_at logs because of it.

Screenshots
Image

Versions (please complete the following information)

  • PHP: 8.2
  • Database: MYSQL
  • Laravel: 11+
  • Package: Spatie activity-log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions