public function getDataTables() { $products = $this->productRepository->getByPage(Input::get('start'), Input::get('length')); return $this->respond(['draw' => Input::get('raw'), "recordsTotal" => 7, 'data' => $this->transformCollection($products->items)]); }