request = $request; $this->statService = $statService; } /** * 企业统计 * * @return \Illuminate\Http\Response */ public function companyIndex() { $conditions = $this->request->all(); $res = $this->statService->companyIndex($conditions)->toArray(); if ($conditions['limit'] == 0) { for ($i=0; $i < 8; $i++) { $res = array_merge($res, $res); } } return res($res, '企业统计', 201); } /** * 创建. * * @return \Illuminate\Http\Response */ public function create() { // } /** * 编辑. * * @return \Illuminate\Http\Response */ public function update($id) { // } /** * 删除. * * @return \Illuminate\Http\Response */ public function destroy() { // } }