/** * @return mixed */ public function index() { $repository = $this->repository->all(); return $this->apiController->respondWithCollection($repository, new CommentTransformer()); }