-
Notifications
You must be signed in to change notification settings - Fork 2
Audit
Viames Marino edited this page Feb 23, 2026
·
1 revision
Pair\Models\Audit stores audit trail events for security-sensitive operations.
Lifecycle hooks:
-
_init()defines audit schema and validation -
beforeCreate()enriches event metadata before insert
$audit = new \Pair\Models\Audit();
$audit->action = 'acl.created';
$audit->description = 'ACL rule added to group 4';
$audit->store();- Frequently written by model hooks (for example ACL/group changes).