Users Module: Compare fields before & after saveCreated 1 year ago by finnito
I'm looking at checking the fields of a user before and after they save so that if any particular ones are changed, I do some external updating. There's the
Anomaly\UsersModule\User\Event\UserWasUpdated event by @craigberry but it fires after the user is updated.
I'm reading that there is a Laravel getDirty method but it only returns fields if the entry has not had
->save() called on it (I think), so it wouldn't work for the
Does anyone have any suggestions as how I could go about doing this before/after diff on user fields?
Thanks for the help in advance!