areaRepository = $areaRepository; } /** * 获取全部区域 * @return mixed * User: Mead */ public function index() { try { $areas = $this->areaRepository->all(); return $this->response->array($areas); } catch (\Exception $exception) { return $this->errorNoValidation($exception->getMessage()); } } }