neelbhanushali / laravel-audit-log
Audit Log for Laravel
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/neelbhanushali/laravel-audit-log
This package is auto-updated.
Last update: 2025-11-29 02:57:08 UTC
README
Audit Log for laravel
- Use
NeelBhanushali\LaravelAuditLog\Traits\Auditabletrait in your model.
For advance use
- Lets say you need to audit
rolesbut as perusers. - Use case: You need to check what/when
roleswere assigned tousers. - Add following
AUDITconstant
const AUDIT = [
'relation' => 'token',
'entity_id' => 'key',
'entity_type' => Token::class,
'parent_id' => 'user_id',
'parent_type' => User::class
];
-
entity_id,parent_idcan have following values:key: gets value of primary key of current recordcolumn_name: gets value of column from current record
-
entity_type,parent_typecan have following values:class_pathcolumn_name: gets value of column from current record (in case of morph)