Skip to content

Commit f943cac

Browse files
committed
Fix issue with retrieving every single id to count them (fix #81)
1 parent 54267b1 commit f943cac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NilPortugues/Laravel5/JsonApi/Controller/JsonApiTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function totalAmountResourceCallable()
6363
return function () {
6464
$idKey = $this->getDataModel()->getKeyName();
6565

66-
return $this->getDataModel()->query()->get([$idKey])->count();
66+
return $this->getDataModel()->query()->count([$idKey]);
6767
};
6868
}
6969

0 commit comments

Comments
 (0)