Skip to content

Commit

Permalink
Merge pull request #13 from pelmered/main
Browse files Browse the repository at this point in the history
Add support for morph maps
  • Loading branch information
luke-parallax authored Feb 13, 2024
2 parents 7d62ffe + 48d60b9 commit b03c0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Traits/HasFilamentComments.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function filamentComments(): HasMany
{
return $this
->hasMany(FilamentComment::class, 'subject_id')
->where('subject_type', static::class)
->where('subject_type', $this->getMorphClass())
->latest();
}
}

0 comments on commit b03c0da

Please sign in to comment.