/**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     $faker = Faker::create();
     $Postulante = Postulante::all();
     $samples_temp = [];
     foreach ($Postulante as $item) {
         $samples_temp[] = ['postulante' => $item->id, 'cuerpo' => $faker->text($maxNbChars = 200), 'validado' => $faker->numberBetween($min = 0, $max = 1)];
     }
     Testimonio::insert($samples_temp);
 }
 public function getViewTestimonio($id)
 {
     $testimonio = Testimonio::find($id)->cuerpo;
     return view('testimonio.view_internet', compact('testimonio'));
 }
 public function getTestimonios()
 {
     $testimonios = Testimonio::with('postulanteR')->get();
     $arra = array('data' => $testimonios->toArray());
     return json_encode($arra);
 }