Skip to content

Commit

Permalink
# Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Aagaard committed Apr 29, 2020
1 parent cfc2c83 commit e564d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public function __construct(array $attributes = [])
public function subject(): MorphTo
{
if (config('activitylog.subject_returns_soft_deleted_models')) {
return $this->morphTo('subject', 'subjectType', 'subjectID', 'subjectID')->withTrashed();
return $this->morphTo('subject', 'subjectType', 'subjectID', 'id')->withTrashed();
}

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

public function causer(): MorphTo
Expand Down

0 comments on commit e564d94

Please sign in to comment.