alphaolomi / alphaolomi/laravel-repman

There is no way to know if I am at the end of listing

未关闭
#9 2 条评论 0 个 reaction 已指派 1 人 已被 @alphaolomi 认领 在 GitHub 查看
good first issue help wanted
主要语言
PHP
星标
7
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

How to know if I am at the end of listing?

```php
do {
$packages = $repmanService->packages($organization)->list($page);

if ($packages->contains('name', '=', $packageName)) {
$this->output->error('Package exists, exiting');
return Command::INVALID;
}
$page++;
} while ($packages->count());
```

as Repman always sends back last page(presumably, I do not know yet)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。