public function all() { $comment = array(); $data = $this->repository->with([])->all(); foreach ($data as $comments) { $comment[] = $this->transform($comments); } return $comment; }