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 Koch2y ago
Should be possible via one of the lifecycle hooks and Eloquents getDirty() or getChanges() method

Did you find this page helpful?