"kondisi normal, namun perlu istirahat", 'mi' => "perlu tindakan secepatnya dan pemantauan" ]; for ($x = 0; $x < 50; $x++){ $doctor = Doctor::inRandomOrder()->first(); $patient = Patient::inRandomOrder()->first(); $c = $conditions->shuffle()->first(); Diagnose::create([ 'patient_id' =>$patient->id, 'doctor_id' =>$doctor->id, 'diagnoses' => $c, 'notes' => $notes[$c], 'is_verified' => false, 'file' => 'apicta/963q79jNwGT8Pqhs910e1eC57hZbWugnXnbYb2wr.wav' ]); } } }