Skip to content

Commit 48d60b9

Browse files
authored
Support for morph maps
1 parent 1eae6d5 commit 48d60b9

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)