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?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3vPkgsi
via IFTTT
Aucun commentaire:
Enregistrer un commentaire