Skip to content

Commit 066066d

Browse files
author
Tom Schlick
authored
fix typo
1 parent 5a001fd commit 066066d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function recordChanges(int $event_type, $model) : void
3535

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

0 commit comments

Comments
 (0)