taxRateRepo = $taxRateRepo; $this->datatableService = $datatableService; } /** * @return TaxRateRepository */ protected function getRepo() { return $this->taxRateRepo; } /** * @param $accountId * * @return \Illuminate\Http\JsonResponse */ public function getDatatable($accountId) { $datatable = new TaxRateDatatable(false); $query = $this->taxRateRepo->find($accountId); return $this->datatableService->createDatatable($datatable, $query); } }