🔥 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.
Other tips:
🔥 Small tip: foreach + range
Oct 15, 2022
🔥 Laravel Tip: the wasChanged method
Apr 8, 2022