0
Good afternoon guys, I have a problem which is as follows would like to know if Laravel has any method to check if any changes were made before saving the model Example.
table users, if the user requested to edit the name, but did not change anything, and have saved, is accepted in good! but I would like you to save only if there really was a change!
for my research there is a method isDirty but I don’t understand your concept.
OBS: I exemplified a simple model, could do the check manual, but let’s think of a much larger model with many attributes, it would not be feasible to carry out manually.
if someone can give the path of the stones I am happy!