From 63894e0f248a0db32ad44fa4bbf2abfcc40f2672 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 30 Jan 2016 22:27:26 +1100 Subject: [PATCH] Working on products api --- app/Http/Controllers/ProductApiController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/ProductApiController.php b/app/Http/Controllers/ProductApiController.php index d6aa7b2330..02e03338a5 100644 --- a/app/Http/Controllers/ProductApiController.php +++ b/app/Http/Controllers/ProductApiController.php @@ -33,6 +33,8 @@ class ProductApiController extends BaseAPIController //$products = $products $products = Product::scope()->withTrashed(); + $products = $products->paginate(); + $paginator = Product::scope()->withTrashed()->paginate(); $transformer = new ProductTransformer(\Auth::user()->account, $this->serializer);