Silent 6 years ago
parent
commit
635f031a76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Admin/TeacherController.php

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

@@ -134,7 +134,7 @@ class TeacherController extends Controller
 
 
         $data = $request->input('data');
         $data = $request->input('data');
 
 
-        $tmp = $this->where([
+        $tmp = $this->model->where([
             ['phone', '=', $data['phone']],
             ['phone', '=', $data['phone']],
             ['id', '<>', $request->input('id')],
             ['id', '<>', $request->input('id')],
         ])->first();
         ])->first();