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 摘要。