updateParent($request->parent_id)) { return $this->response()->success('变更成功')->refresh(); } else { return $this->response()->error('变更失败')->refresh(); } } catch (Exception $exception) { return $this->response()->error($exception->getMessage())->refresh(); } } public function form() { $this->text('parent_id', '目标ID'); $this->confirm('确认变更隶属?'); } }