We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a001fd commit 066066dCopy full SHA for 066066d
src/Models/BaseModel.php
@@ -35,7 +35,7 @@ public static function recordChanges(int $event_type, $model) : void
35
36
collect($changes)
37
->except(config('model-auditlog.global_ignored_fields'))
38
- ->except([$this->getKeyName()]) // Ignore the current model's primary key
+ ->except([$model->getKeyName()]) // Ignore the current model's primary key
39
->each(function ($change, $key) use ($event_type, $model) {
40
$log = new static();
41
$log->event_type = $event_type;
0 commit comments