Closed Jipem closed 5 years ago
Hello,
In a query listing commentable articles, is it possible to make an orberBy number of comments?
Thanks !
I like doing my own questions / answers :
->withCount('comments') ->orderBy('comments_count', 'desc');
Glad you figured it out.
Hello,
In a query listing commentable articles, is it possible to make an orberBy number of comments?
Thanks !