Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function updateProducts() {
- $sub_cid = Input::get('sub_cid');
- $products = Helpers::getProductsById( $sub_cid );
- $links = $products->links();
- $data = [
- 'data' => $products->toArray(),
- 'links' => $links
- ];
- return Response::json( $data );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement