public function getComment($doc, $commentId) { try { $userId = null; if (Auth::check()) { $userId = Auth::user()->id; } $result = Comment::loadComment($doc, $commentId, $userId); } catch (Exception $e) { throw $e; App::abort(500, $e->getMessage()); } return Response::json($result); }