FIX: add with methods to selecting comments and content pages
This commit is contained in:
@@ -27,6 +27,7 @@ class Article extends Handler implements ContentTitles
|
||||
$content->comments = [];
|
||||
if (isset($content->module_settings->allowComments) && $content->module_settings->allowComments) {
|
||||
$content->comments = Comment::where('content_id', $content->id)
|
||||
->with('author')
|
||||
->where('approved', 1)
|
||||
->orderBy('created_at')
|
||||
->get();
|
||||
|
||||
Reference in New Issue
Block a user