audits.id as UUID #920
Answered
by
parallels999
leandroneves-net
asked this question in
Q&A
-
Hello, I would like to use audits.id as UUID. Is it possible? Is it configurable or I need write a patch? Thanks in advance, Leandro |
Beta Was this translation helpful? Give feedback.
Answered by
parallels999
Jun 5, 2024
Replies: 1 comment
-
Update your migration file laravel-auditing/config/audit.php Line 16 in 22682dd https://laravel-auditing.com/guide/audit-migration.html#uuid-over-auto-incrementing-ids |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
parallels999
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update your migration file
You have to make your own custom model extending
OwenIt\Auditing\Models\Audit
(with UUID changes), and set it inaudit.implementation
on configlaravel-auditing/config/audit.php
Line 16 in 22682dd
https://laravel-auditing.com/guide/audit-migration.html#uuid-over-auto-incrementing-ids