Track Created By / Modified By for Records in AdonisJS
· ☕ 1 min read
AdonisJS provided a quick way to track created and updated times, but does not provide shortcuts to track the user who created or last updated the record. Doing so is quite easy.
Modify the migration script to include created_by_id and updated_by_id.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 // todoschema.