protected function migratePerson($person)
    {
        //TODO create person in personal data table
        $user = User::firstOrNew([
            'email' => $person->email,
        ]);
        $user->name = $person->name;
        $user->password = bcrypt('secret');
        $user->remember_token = str_random(10);
        $user->save();
        return $user;
    }
protected function migratePerson($person)
    {
        //TODO create person in personal data table
        $user = User::firstOrNew([
            'email' => $person->email,
        ]);
        $user->name = $person->name;
        $user->password = bcrypt('secret');
        $user->remember_token = str_random(10);
        $user->save();
        return $user;
    }
protected function migratePerson ( $ person ) { //TODO create person in personal data table $ user = User :: firstOrNew ( [ 'email' => $ person -> email , ] ) ; $ user -> name = $ person -> name ; $ user -> password = bcrypt ( 'secret' ) ; $ user -> remember_token = str_random ( 10 ) ; $ user -> save ( ) ; return $ user ; }
Migrate ebre-escool person to scool person.

@param $person
Migrate ebre - escool person to scool person .