Skip to content

Date always stored even if none changed #1024

@gldrenthe89

Description

@gldrenthe89

PHP Version

8.3

Laravel Version

12.0

Package Version

Latest release

Description

A issue that has been reported before but no solution given: #483

I have the same issue where i have my database correctly set-up. The attribute is correctly being casted as 'datetime:Y-m-d' The save action has the same date as previous saved so the data after save was not dirty. But the audit is being logged as seen in below screenshot

Image

This in my opinion is a core issue. Audits should only be saved if a database record was indeed different than before. Or at least respect the casts instead of the 'carbon' value being recorded as new value, which isnt even possible to save in the database.

Please give this a proper look or give us the proper way to handle this so the database isnt being filled with unneeded data.

Steps To Reproduce

.

Possible Solutions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions