Expand API with budget limits

This commit is contained in:
James Cole
2018-06-24 13:20:29 +02:00
parent 91701473af
commit 0b9be029ac
12 changed files with 587 additions and 26 deletions

View File

@@ -97,7 +97,7 @@ class AvailableBudgetController extends Controller
// types to get, page size:
$pageSize = (int)app('preferences')->getForUser(auth()->user(), 'listPageSize', 50)->data;
// get list of accounts. Count it and split it.
// get list of available budgets. Count it and split it.
$collection = $this->repository->getAvailableBudgets();
$count = $collection->count();
$availableBudgets = $collection->slice(($this->parameters->get('page') - 1) * $pageSize, $pageSize);