Silent %!s(int64=6) %!d(string=hai) anos
pai
achega
8f97a896e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Http/Controllers/Admin/TeacherController.php

+ 1 - 1
app/Http/Controllers/Admin/TeacherController.php

xqd
@@ -147,7 +147,7 @@ class TeacherController extends Controller
             $data['password'] = bcrypt($request->input('password', 123456));
         }
 
-        $res = $this->model->where('id', $request->input('id'))->update($data['password']);
+        $res = $this->model->where('id', $request->input('id'))->update($data);
         if(!$res) {
             return $this->showWarning('数据库保存失败!');
         }