If you are updating a record and want to update the updated_at
column of parent relationship (like, you add new post comment and want posts.updated_at
to renew), just use $touches = ['post'];
property on child model.
1class Comment extends Model2{3 protected $touches = ['post'];4}