Saving related model changes on parent model #1014
Unanswered
lucadegasperi
asked this question in
Q&A
Replies: 1 comment
-
You could see how you get on with auditSync when setting the relation https://laravel-auditing.com/guide/audit-custom.html#example-related-attributes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
Let's say I have a Checklist model that has many Checklist Items, whenever someone adds an item or checks one off, I wanted to audit that change. My issue is that from a domain perspective a checklist and its items are a single concept. For an easier retrieval of a previous version of a checklist I would like to have all item changes be stored in the checklist audit. Is this possible? Can someone share a code sample of how to achieve this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions