Skip to content

Commit e564d94

Browse files
author
Andreas Aagaard
committed
# Initial
1 parent cfc2c83 commit e564d94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Models/Activity.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public function __construct(array $attributes = [])
3333
public function subject(): MorphTo
3434
{
3535
if (config('activitylog.subject_returns_soft_deleted_models')) {
36-
return $this->morphTo('subject', 'subjectType', 'subjectID', 'subjectID')->withTrashed();
36+
return $this->morphTo('subject', 'subjectType', 'subjectID', 'id')->withTrashed();
3737
}
3838

39-
return $this->morphTo('subject', 'subjectType', 'subjectID', 'subjectID');
39+
return $this->morphTo('subject', 'subjectType', 'subjectID', 'id');
4040
}
4141

4242
public function causer(): MorphTo

0 commit comments

Comments
 (0)