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
    }
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
    }
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 }
Migrate teacher.

@param Teacher $teacher
Migrate teacher .