Audit - viames/pair GitHub Wiki
Pair framework: Audit
Pair\Models\Audit stores audit trail events for security-sensitive operations.
Main behavior
Lifecycle hooks:
_init()defines audit schema and validationbeforeCreate()enriches event metadata before insert
Implementation example
$audit = new \Pair\Models\Audit();
$audit->action = 'acl.created';
$audit->description = 'ACL rule added to group 4';
$audit->store();
Notes
- Frequently written by model hooks (for example ACL/group changes).