'1','Outcome' => 'Live singleton'), array('Outcome_Id' => '2','Outcome' => 'Live multiple'), array('Outcome_Id' => '3','Outcome' => 'Fresh SB'), array('Outcome_Id' => '4','Outcome' => 'Macerated SB'), array('Outcome_Id' => '5','Outcome' => 'Spontaneous abortion') ); foreach ($anc_outcomes as $outcome) { AnteNatalClinicOutcome::firstOrCreate([ 'id' => $outcome['Outcome_Id'], 'name' => $outcome['Outcome'] ]); } } }