dharmaRepository = $dharmaRepository; } /** * @return array */ public function getDharmaDetail() { $response = []; try { $response = $this->dharmaRepository->getDharmaDetail(); $this->setStatusCode($response['status']); } catch (\Exception $ex) { Log::error($ex); $this->setStatusCode(Constant::CODE_403); } return $this->respond($response); } }