Downloads
Stars
Version
Audit Log for laravel
NeelBhanushali\LaravelAuditLog\Traits\Auditable
trait in your model.roles
but as per users
.roles
were assigned to users
.AUDIT
constantconst AUDIT = [
'relation' => 'token',
'entity_id' => 'key',
'entity_type' => Token::class,
'parent_id' => 'user_id',
'parent_type' => User::class
];
entity_id
, parent_id
can have following values:
key
: gets value of primary key of current recordcolumn_name
: gets value of column from current recordentity_type
, parent_type
can have following values:
class_path
column_name
: gets value of column from current record (in case of morph)