datatableService = $datatableService; $this->productRepo = $productRepo; } protected function getRepo() { return $this->productRepo; } /* public function save() { return null; } */ public function getDatatable($accountId) { $datatable = new ProductDatatable(false); $query = $this->productRepo->find($accountId); return $this->datatableService->createDatatable($datatable, $query); } }