Compare commits

..

No commits in common. "eed099245ba09373d0948463d7de5abbca9f1164" and "b9e964435d368aabac12a5488c0cd9fd89feb6c7" have entirely different histories.

4 changed files with 3358 additions and 4538 deletions

View file

@ -14,6 +14,5 @@ class DatabaseSeeder extends Seeder
{
$this->call(CanastaSeeder::class);
$this->call(GrupoDeCompraSeeder::class);
$this->call(UserSeeder::class);
}
}

View file

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

View file

@ -1,31 +0,0 @@
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$usersToInsert = [];
$usersToInsert[] = [
'name' => 'compras',
'password' => Hash::make("123"),
'is_admin' => 0,
'is_compras' => 1
];
foreach (array_chunk($usersToInsert,DatabaseSeeder::CHUNK_SIZE) as $chunk)
{
DB::table('users')->insert($chunk);
}
}
}

7858
package-lock.json generated

File diff suppressed because it is too large Load diff