Is there a way to compare the data before and after save ?

Hello, I am looking to compare the change in data to decide whether I want to send an email to the user. Is it possible to do it ?
1 Reply
Dennis Koch
Dennis Koch16mo ago
Should be possible via one of the lifecycle hooks and Eloquents getDirty() or getChanges() method
Want results from more Discord servers?
Add your server