Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Schlick authored Jun 10, 2019
1 parent 5a001fd commit 066066d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function recordChanges(int $event_type, $model) : void

collect($changes)
->except(config('model-auditlog.global_ignored_fields'))
->except([$this->getKeyName()]) // Ignore the current model's primary key
->except([$model->getKeyName()]) // Ignore the current model's primary key
->each(function ($change, $key) use ($event_type, $model) {
$log = new static();
$log->event_type = $event_type;
Expand Down

0 comments on commit 066066d

Please sign in to comment.