Working on products api

This commit is contained in:
David Bomba 2016-01-30 22:17:10 +11:00
parent 1f36e175dd
commit 43c6024f0f

View File

@ -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);