original_string: protected function migrateTeacher(Teacher $teacher) {
          $user = User::firstOrNew([
              'email' => $teacher->email,
          ]);
          $user->name = $teacher->name;
          $user->password = bcrypt('secret');
          $user->remember_token = str_random(10);
          $user->save();
          //TODO: migrate teacher codes, create roles and assign to user/teachers
      }
code: protected function migrateTeacher(Teacher $teacher) {
          $user = User::firstOrNew([
              'email' => $teacher->email,
          ]);
          $user->name = $teacher->name;
          $user->password = bcrypt('secret');
          $user->remember_token = str_random(10);
          $user->save();
          //TODO: migrate teacher codes, create roles and assign to user/teachers
      }
code_tokens: protected function migrateTeacher ( Teacher $ teacher ) { $ user = User :: firstOrNew ( [ 'email' => $ teacher -> email , ] ) ; $ user -> name = $ teacher -> name ; $ user -> password = bcrypt ( 'secret' ) ; $ user -> remember_token = str_random ( 10 ) ; $ user -> save ( ) ; //TODO: migrate teacher codes, create roles and assign to user/teachers }
docstring: Migrate teacher.
  
  @param Teacher $teacher
docstring_tokens: Migrate teacher .