exists($directory)) Storage::disk($disk)->deleteDirectory($directory); // Arturo Corro $user = User::create([ 'name' => 'Koneko Admin', 'email' => 'arturo@koneko.mx', 'email_verified_at' => now(), 'password' => bcrypt('KO:qu1m1*'), 'status' => User::STATUS_ENABLED, ])->assignRole('SuperAdmin'); $user->updateProfilePhoto(new UploadedFile( 'public/assets/img/logo/koneko-02.png', 'koneko-02.png' )); // Webmaster admin $user = User::create([ 'name' => 'Quimiplastic Admin', 'email' => 'admin@operadoraconcierge.com', 'email_verified_at' => now(), 'password' => bcrypt('KO:qu1m1'), 'status' => User::STATUS_ENABLED, ])->assignRole('Admin'); $user->updateProfilePhoto(new UploadedFile( 'public/assets/img/logo/koneko-03.png', 'koneko-03.png' )); // Usuarios CSV $csvFile = fopen(base_path("modules/Admin/Database/data/users.csv"), "r"); $firstline = true; while (($data = fgetcsv($csvFile, 2000, ",")) !== FALSE) { if (!$firstline) { User::create([ 'name' => $data['0'], 'email' => $data['1'], 'email_verified_at' => now(), 'password' => bcrypt('KO:qu1m1'), 'status' => User::STATUS_ENABLED, ])->assignRole($data['2']); } $firstline = false; } fclose($csvFile); } }