Skip to content

Does threshold limit remove over the limit entries? #781

Discussion options

You must be logged in to vote

For anyone looking for an answer, $auditThreshold sets limit per model instance. This means when setting protected $auditThreshold = 10; there will be 10 audit records for one model instance, check auditable_type and auditable_id columns:

SELECT COUNT(*), audits.auditable_type, audits.auditable_id
FROM audits
where audits.auditable_type = "App\\Models\\User"
GROUP BY audits.auditable_type, audits.auditable_id

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by parallels999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #552 on March 13, 2023 20:38.