funcion/migracion-de-usuarios #42

Merged
atasistro merged 3 commits from funcion/migracion-de-usuarios into master 2025-05-08 20:44:57 -03:00
Showing only changes of commit eed099245b - Show all commits

View file

@ -1,6 +1,8 @@
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use League\Csv\Reader;
class GrupoDeCompraSeeder extends Seeder
@ -31,14 +33,14 @@ class GrupoDeCompraSeeder extends Seeder
$usersToInsert[] = [
'name' => $registro['barrio'],
'password' => Hash::make("asd"),
'password' => Hash::make("123"),
"is_admin" => 0,
'grupo_de_compra_id' => $key
];
$usersToInsert[] = [
'name' => $registro['barrio'] . "_admin",
'password' => Hash::make("asd"),
'password' => Hash::make("123"),
"is_admin" => 1,
'grupo_de_compra_id' => $key
];