diff --git a/app/Http/Controllers/Api/AbstractApiController.php b/app/Http/Controllers/Api/AbstractApiController.php index 83d79b3a4..573214092 100644 --- a/app/Http/Controllers/Api/AbstractApiController.php +++ b/app/Http/Controllers/Api/AbstractApiController.php @@ -167,7 +167,7 @@ abstract class AbstractApiController extends Controller $items = $items->sortBy($sortBy, SORT_REGULAR, $direction); } - return $this->setMetaData($pagination)->setData(AutoPresenter::decorate($items->values()->all()))->respond(); + return $this->setMetaData($pagination)->setData(AutoPresenter::decorate($items->values()))->respond(); } /**