Skip to content

Commit cfc2c83

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Activity.php

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

3939
return $this->morphTo('subject', 'subjectType', 'subjectID', 'subjectID');

0 commit comments

Comments
 (0)