|
@ -30,21 +30,19 @@ return new class extends Migration |
|
|
$table->foreign('tipos_id')->references('id')->on('tipos'); |
|
|
$table->foreign('tipos_id')->references('id')->on('tipos'); |
|
|
}); |
|
|
}); |
|
|
DB::table('users')->insert([ |
|
|
DB::table('users')->insert([ |
|
|
[ |
|
|
|
|
|
'name'=> 'Administrador', |
|
|
|
|
|
'email'=> 'admin@admin.com', |
|
|
|
|
|
'password'=> bcrypt('12345678'), |
|
|
|
|
|
'tipos_id' => 1 |
|
|
|
|
|
], |
|
|
|
|
|
[ |
|
|
[ |
|
|
'name' => 'silva', |
|
|
'name' => 'silva', |
|
|
'email' => 'silva@silva.com', |
|
|
'email' => 'silva@silva.com', |
|
|
'apellido' => 'anael', |
|
|
'apellido' => 'anael', |
|
|
'puesto_id' => 2, |
|
|
'puesto_id' => 2, |
|
|
'departamento_id' => 2, |
|
|
'departamento_id' => 2, |
|
|
|
|
|
'tipos_id' => 2, |
|
|
'telefono' => '33652147821', |
|
|
'telefono' => '33652147821', |
|
|
'password' => bcrypt('12345678'), |
|
|
'password' => bcrypt('12345678'), |
|
|
'tipos_id' => 2 |
|
|
'email_verified_at' => '2025-05-23 18:33:05', |
|
|
|
|
|
'remember_token' => null, |
|
|
|
|
|
'created_at' => now(), |
|
|
|
|
|
'updated_at' => now(), |
|
|
], |
|
|
], |
|
|
[ |
|
|
[ |
|
|
'name' => 'monse', |
|
|
'name' => 'monse', |
|
@ -52,9 +50,13 @@ return new class extends Migration |
|
|
'apellido' => 'martinez', |
|
|
'apellido' => 'martinez', |
|
|
'puesto_id' => 1, |
|
|
'puesto_id' => 1, |
|
|
'departamento_id' => 3, |
|
|
'departamento_id' => 3, |
|
|
|
|
|
'tipos_id' => 1, |
|
|
'telefono' => null, |
|
|
'telefono' => null, |
|
|
'password' => bcrypt('12345678'), |
|
|
'password' => bcrypt('12345678'), |
|
|
'tipos_id' => 1 |
|
|
'email_verified_at' => '2025-05-23 18:33:05', |
|
|
|
|
|
'remember_token' => null, |
|
|
|
|
|
'created_at' => now(), |
|
|
|
|
|
'updated_at' => now(), |
|
|
], |
|
|
], |
|
|
[ |
|
|
[ |
|
|
'name' => 'usuario_tipo3', |
|
|
'name' => 'usuario_tipo3', |
|
@ -62,9 +64,13 @@ return new class extends Migration |
|
|
'apellido' => 'apellido3', |
|
|
'apellido' => 'apellido3', |
|
|
'puesto_id' => 1, |
|
|
'puesto_id' => 1, |
|
|
'departamento_id' => 1, |
|
|
'departamento_id' => 1, |
|
|
|
|
|
'tipos_id' => 3, |
|
|
'telefono' => '3333333333', |
|
|
'telefono' => '3333333333', |
|
|
'password' => bcrypt('12345678'), |
|
|
'password' => bcrypt('12345678'), |
|
|
'tipos_id' => 3 |
|
|
'email_verified_at' => '2025-05-23 18:33:05', |
|
|
|
|
|
'remember_token' => null, |
|
|
|
|
|
'created_at' => now(), |
|
|
|
|
|
'updated_at' => now(), |
|
|
], |
|
|
], |
|
|
[ |
|
|
[ |
|
|
'name' => 'usuario_tipo4', |
|
|
'name' => 'usuario_tipo4', |
|
@ -72,9 +78,13 @@ return new class extends Migration |
|
|
'apellido' => 'apellido4', |
|
|
'apellido' => 'apellido4', |
|
|
'puesto_id' => 1, |
|
|
'puesto_id' => 1, |
|
|
'departamento_id' => 1, |
|
|
'departamento_id' => 1, |
|
|
|
|
|
'tipos_id' => 4, |
|
|
'telefono' => '4444444444', |
|
|
'telefono' => '4444444444', |
|
|
'password' => bcrypt('12345678'), |
|
|
'password' => bcrypt('12345678'), |
|
|
'tipos_id' => 4 |
|
|
'email_verified_at' => '2025-05-23 18:33:05', |
|
|
|
|
|
'remember_token' => null, |
|
|
|
|
|
'created_at' => now(), |
|
|
|
|
|
'updated_at' => now(), |
|
|
], |
|
|
], |
|
|
]); |
|
|
]); |
|
|
} |
|
|
} |
|
|