spatie / laravel-comments-app

An application for testing out laravel-comments
https://laravel-comments.com
5 stars 2 forks source link

No ability to 'count' comments #9

Closed mauricekindermann closed 4 months ago

mauricekindermann commented 9 months ago

I've read the docs and cannot find any information about this.

We're redeveloping a site with thousands of comments and we should the total comments a model might have. Eg a blog post might have 4 parent comments, with 6 nested, totalling 10.

But there is no way to do this directly, we have to create our own custom way of doing this which is a bit of pain.

Ideally we could easily get the relationships for...

total_comments total_comments->parents total_comments->nested

Thanks!

spatie-bot commented 4 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.