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.
1 parent 80677e8 commit cfc2c83Copy full SHA for cfc2c83
src/Models/Activity.php
@@ -33,7 +33,7 @@ public function __construct(array $attributes = [])
33
public function subject(): MorphTo
34
{
35
if (config('activitylog.subject_returns_soft_deleted_models')) {
36
- return $this->morphTo()->withTrashed();
+ return $this->morphTo('subject', 'subjectType', 'subjectID', 'subjectID')->withTrashed();
37
}
38
39
return $this->morphTo('subject', 'subjectType', 'subjectID', 'subjectID');
0 commit comments