From 43c6024f0f275bbf2c0210d6f24b55992eb9d66b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 30 Jan 2016 22:17:10 +1100 Subject: [PATCH] Working on products api --- app/Http/Controllers/ProductApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProductApiController.php b/app/Http/Controllers/ProductApiController.php index d338bdbc8244..5401ce4a641c 100644 --- a/app/Http/Controllers/ProductApiController.php +++ b/app/Http/Controllers/ProductApiController.php @@ -34,7 +34,7 @@ class ProductApiController extends BaseAPIController $products = Product::scope()->withTrashed()->paginate(); $transformer = new ProductTransformer(\Auth::user()->account, $this->serializer); - $data = $this->includeCollection($products, $transformer, 'products'); + $data = $this->createCollection($products, $transformer, 'products'); return $this->response($data);