Skip to content

Commit b03c0da

Browse files
Merge pull request #13 from pelmered/main
Add support for morph maps
2 parents 7d62ffe + 48d60b9 commit b03c0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Traits/HasFilamentComments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function filamentComments(): HasMany
1111
{
1212
return $this
1313
->hasMany(FilamentComment::class, 'subject_id')
14-
->where('subject_type', static::class)
14+
->where('subject_type', $this->getMorphClass())
1515
->latest();
1616
}
1717
}

0 commit comments

Comments
 (0)