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