proposalCategoryRepo = $proposalCategoryRepo; $this->datatableService = $datatableService; } /** * @return CreditRepository */ protected function getRepo() { return $this->proposalCategoryRepo; } /** * @param $data * @param mixed $proposalCategory * * @return mixed|null */ public function save($data, $proposalCategory = false) { return $this->proposalCategoryRepo->save($data, $proposalCategory); } /** * @param $clientPublicId * @param $search * @param mixed $userId * * @return \Illuminate\Http\JsonResponse */ public function getDatatable($search, $userId) { // we don't support bulk edit and hide the client on the individual client page $datatable = new ProposalCategoryDatatable(); $query = $this->proposalCategoryRepo->find($search, $userId); return $this->datatableService->createDatatable($datatable, $query); } }