Conditional Audit Skip #958
-
My issue is this, when certain fields are changed with specific values I do not require an audit record to be generated. I have found several suggestions with shouldAudit() and isAuditableEvent() but neither of these stopped the audit. Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
https://laravel-auditing.com/guide/audit-transformation.html laravel-auditing/config/audit.php Line 104 in 28ecd2d Set Also https://laravel-auditing.com/guide/auditable-configuration.html#enable-disable |
Beta Was this translation helpful? Give feedback.
https://laravel-auditing.com/guide/audit-transformation.html
laravel-auditing/config/audit.php
Line 104 in 28ecd2d
Set
empty_values
to false, and usetransformAudit
and clean the audit on your specific valuesAlso
https://laravel-auditing.com/guide/auditable-configuration.html#enable-disable