/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker::create();
     $solicitudCurso = PreNuSolicitudCurso::all();
     $asignatura = Asignatura::all();
     $aceptado = array('si', 'no');
     $samples_temp = [];
     foreach ($asignatura as $item) {
         $asigCodigo[] = $item->codigo;
     }
     foreach ($solicitudCurso as $item) {
         $num = $faker->numberBetween($min = 1, $max = 6);
         for ($i = 0; $i < $num; $i++) {
             $samples_temp[] = ['solicitud_curso' => $item->id, 'asignatura' => $asigCodigo[$faker->unique->numberBetween($min = 0, $max = count($asigCodigo) - 1)], 'observaciones' => $faker->paragraph($nbSentences = 5, $variableNbSentences = true), 'aceptado' => $aceptado[$faker->numberBetween($min = 0, $max = 1)]];
         }
     }
     DetalleSolicitudCurso::insert($samples_temp);
 }