🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~ $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', '修改失败'); } ~~~