moduleHandler != Article::class) return; $content->comments = new Collection(); if (isset($content->moduleSettings['allowComments']) && $content->moduleSettings['allowComments']) { $content->comments = Comment::where('content_id', $content->id) ->with('author') ->where('approved', 1) ->orderBy('created_at') ->get(); } } }