🔥 Laravel Tip: the discardChanges method.
Nov 29, 2022
On v9.29 the discardChanges method was added.
With this method, you can undo all the changes you made to the model before saving.
With this method, you can undo all the changes you made to the model before saving.