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.
2 parents bd9be83 + 28e7bd5 commit 75b33ecCopy full SHA for 75b33ec
src/Audit.php
@@ -75,8 +75,8 @@ public function resolveData(): array
75
'audit_id' => $this->id,
76
'audit_event' => $this->event,
77
'audit_tags' => $this->tags,
78
- 'audit_created_at' => $this->serializeDate($this->created_at),
79
- 'audit_updated_at' => $this->serializeDate($this->updated_at),
+ 'audit_created_at' => $this->serializeDate($this->{$this->getCreatedAtColumn()}),
+ 'audit_updated_at' => $this->serializeDate($this->{$this->getUpdatedAtColumn()}),
80
'user_id' => $this->getAttribute($morphPrefix . '_id'),
81
'user_type' => $this->getAttribute($morphPrefix . '_type'),
82
];
0 commit comments