Skip to content

Commit

Permalink
Exclude audit columns
Browse files Browse the repository at this point in the history
Exclude audit columns from activity logs (if installed)
  • Loading branch information
vpzqtsolv authored Jan 8, 2022
1 parent 70ce110 commit a875587
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/HasAuditors.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
*/
trait HasAuditors
{
protected static $logAttributesToIgnore = [
'created_by_id', 'created_by_type', 'updated_by_id', 'updated_by_type', 'deleted_by_id', 'deleted_by_type',
];

public static function bootHasAuditors()
{
static::creating(function ($model) {
Expand Down

0 comments on commit a875587

Please sign in to comment.