public function displayPostComment($id, $pid) { $groupPage = GroupPage::where('grouppageID', $id)->first(); $post = GroupPagePost::with('owner', 'groupPageFiles')->where('grouppagepostID', $pid)->first(); $comments = GroupPagePostComment::with('owner')->where('grouppagepostID', $pid)->where('delFlag', 0)->orderBy('created_at', 'DESC')->get(); return View::make('validated.grouppage.viewComments', compact('groupPage', 'post', 'comments')); }