Skip to content

Commit 75b33ec

Browse files
Merge pull request #736 from juanotiz1997/patch-2
2 parents bd9be83 + 28e7bd5 commit 75b33ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Audit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function resolveData(): array
7575
'audit_id' => $this->id,
7676
'audit_event' => $this->event,
7777
'audit_tags' => $this->tags,
78-
'audit_created_at' => $this->serializeDate($this->created_at),
79-
'audit_updated_at' => $this->serializeDate($this->updated_at),
78+
'audit_created_at' => $this->serializeDate($this->{$this->getCreatedAtColumn()}),
79+
'audit_updated_at' => $this->serializeDate($this->{$this->getUpdatedAtColumn()}),
8080
'user_id' => $this->getAttribute($morphPrefix . '_id'),
8181
'user_type' => $this->getAttribute($morphPrefix . '_type'),
8282
];

0 commit comments

Comments
 (0)