企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
~~~ $user = User::find($id); $user->username = $request->input('username'); $user->password = bcrypt(trim($request->input('password'))); if ($user->save()) { return redirect()->route('admin.user.index')->with('success-msg', '修改成功'); } else { return redirect()->back()->with('errors-msg', '修改失败'); } ~~~