I'm trying to use wasChanged
and getChanges
functions to determine updated fields of updateOrCreate
function.
Previously it was working great but after adding a boolean field to updateOrCreate, wasChanged
returns true
and getChanges
returns the field as updated when it's not changed.
I tried to cast value to boolean but nothing resolved.
What might be the reason for this and how can I solve it?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire