Customize Description #1159
Unanswered
deonthomasgy
asked this question in
Q&A
Replies: 3 comments
-
I am looking exactly for this, any update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I use the way to create a Trait function and use this in Model
and use this in the Model
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Why do you actually need to do this? The activity logs table has properties that you can utilize as JSON. However, if you truly need it, you can use a line similar to this one:
|
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
-
Hello Spatie Community,
I would like to customize the description of the logged change in a model.
for example I want to watch a column name 'input' and 'options' for changes and save a detailed description. By default this module sets the description to 'created, updated, deleted'. However I would like a description to be something like
The [causer->name] changed 'input' from 'old.value' to 'new.value'.
The [causer->name] deleted 'input value 'old.value'
....
How can I achieve this in a model?
Beta Was this translation helpful? Give feedback.
All reactions