|
@ -33,10 +33,52 @@ return new class extends Migration |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
DB::table('users')->insert([ |
|
|
DB::table('users')->insert([ |
|
|
'name'=> 'Administrador', |
|
|
[ |
|
|
'email'=> 'admin@admin.com', |
|
|
'name'=> 'Administrador', |
|
|
'password'=> bcrypt('12345678'), |
|
|
'email'=> 'admin@admin.com', |
|
|
'rol' => 'admin' |
|
|
'password'=> bcrypt('12345678'), |
|
|
|
|
|
'rol' => 'admin' |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
'name' => 'silva', |
|
|
|
|
|
'email' => 'silva@silva.com', |
|
|
|
|
|
'apellido' => 'anael', |
|
|
|
|
|
'puesto_id' => 2, |
|
|
|
|
|
'departamento_id' => 2, |
|
|
|
|
|
'telefono' => '33652147821', |
|
|
|
|
|
'password' => bcrypt('12345678') |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
'name' => 'monse', |
|
|
|
|
|
'email' => 'monse@monse.com', |
|
|
|
|
|
'apellido' => 'martinez', |
|
|
|
|
|
'puesto_id' => 1, |
|
|
|
|
|
'departamento_id' => 3, |
|
|
|
|
|
'telefono' => null, |
|
|
|
|
|
'password' => bcrypt('12345678'), |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
'name' => 'usuario_tipo3', |
|
|
|
|
|
'email' => 'tipo3@ejemplo.com', |
|
|
|
|
|
'apellido' => 'apellido3', |
|
|
|
|
|
'puesto_id' => 1, |
|
|
|
|
|
'departamento_id' => 1, |
|
|
|
|
|
'telefono' => '3333333333', |
|
|
|
|
|
'password' => bcrypt('12345678'), |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
'name' => 'usuario_tipo4', |
|
|
|
|
|
'email' => 'tipo4@ejemplo.com', |
|
|
|
|
|
'apellido' => 'apellido4', |
|
|
|
|
|
'puesto_id' => 1, |
|
|
|
|
|
'departamento_id' => 1, |
|
|
|
|
|
'telefono' => '4444444444', |
|
|
|
|
|
'password' => bcrypt('12345678'), |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
]); |
|
|
]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|