/** * 编辑数据页面 * @param null $id */ public function getEdit($id = null) { $data = []; if ($id) { $data['row'] = $this->bindModel->findOrFail($id); } else { $data['row'] = []; } return Response::returns($data); }