taxRateRepo = $taxRateRepo; } public function index() { $taxRates = TaxRate::scope() ->withTrashed() ->orderBy('created_at', 'desc'); return $this->listResponse($taxRates); } public function store(CreateTaxRateRequest $request) { $taxRate = $this->taxRateRepo->save($request->input()); return $this->itemResponse($taxRate); } public function update(UpdateTaxRateRequest $request, $publicId) { if ($request->action) { return $this->handleAction($request); } $data = $request->input(); $data['public_id'] = $publicId; $taxRate = $this->taxRateRepo->save($data, $request->entity()); return $this->itemResponse($taxRate); } public function destroy($publicId) { //stub } }