Working on products api
This commit is contained in:
parent
1f36e175dd
commit
43c6024f0f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue