Replies: 1 comment
-
Hey, first thing that comes to mind are the Log Batches we added in v4: https://spatie.be/docs/laravel-activitylog/v4/advanced-usage/batch-logs With these you can group a batch of logs and retrieve all logs to one batch afterward. This would be the most reliable way to do it as everything is done in the logs table and doesn't rely on any other table values. |
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
-
I have a one-to-many relationship model: an order have an infinite number of details, and the definition is like following:
Order.php:
Detail.php:
And I use the following code to update the
Order
andDetail
:When changes are only on
Detail
(Order
is no need to update ),laravel-activitylog
will only record the changes ofDetail
in database. And how do I show all the changes oforder
including the details ?Beta Was this translation helpful? Give feedback.
All reactions