Update parent "updated_at"
How can I update parent "updated_at", if I modify repeters relationships field?
5 Replies
How are you updating the relationship? updated_at should be part of the model and any change to the model will update it accordingly?
In main model Survey I have relationship answers, answers are edited in SurveyResource repeater->relationships. Edited field belongs to answer, but I want that, Survey updated_at also changes
Ok, but if nothing has changed in the parent that's not easily updatable, you would need to adjust it to handle a manual update as part of the action
Ok, tHanks.
Completely forrgotten about Laravel model
Perfectly done