Arreglo para usuarios por defecto

This commit is contained in:
Rodrigo 2024-09-19 22:31:58 -03:00
parent ff332fadc1
commit 9fc47513c2
2 changed files with 3 additions and 2 deletions

View File

@ -13,5 +13,6 @@ class DatabaseSeeder extends Seeder
public function run() public function run()
{ {
$this->call(CanastaSeeder::class); $this->call(CanastaSeeder::class);
$this->call(GrupoDeCompraSeeder::class);
} }
} }

View File

@ -31,14 +31,14 @@ class GrupoDeCompraSeeder extends Seeder
$usersToInsert[] = [ $usersToInsert[] = [
'name' => $registro['barrio'], 'name' => $registro['barrio'],
'password' => Hash::make($registro['barrio']), 'password' => Hash::make("asd"),
"is_admin" => 0, "is_admin" => 0,
'grupo_de_compra_id' => $key 'grupo_de_compra_id' => $key
]; ];
$usersToInsert[] = [ $usersToInsert[] = [
'name' => $registro['barrio'] . "_admin", 'name' => $registro['barrio'] . "_admin",
'password' => Hash::make($registro['barrio'] . "admin"), 'password' => Hash::make("asd"),
"is_admin" => 1, "is_admin" => 1,
'grupo_de_compra_id' => $key 'grupo_de_compra_id' => $key
]; ];