'1', 'Progress' => 'MWH', 'Color' => 'blue'), array('Id' => '2', 'Progress' => 'Ante-natal (AN)', 'Color' => 'blue'), array('Id' => '3', 'Progress' => 'Latent Phase (LAT)', 'Color' => 'pink'), array('Id' => '4', 'Progress' => 'Active Labour (ACT)', 'Color' => 'red'), array('Id' => '5', 'Progress' => 'SVD', 'Color' => 'green'), array('Id' => '6', 'Progress' => 'Vacuum (VAC)', 'Color' => 'green'), array('Id' => '7', 'Progress' => 'Forceps (FOR)', 'Color' => 'green'), array('Id' => '8', 'Progress' => 'Breech (BR)', 'Color' => 'green'), array('Id' => '9', 'Progress' => 'Delivered CS (CS)', 'Color' => 'green') ); foreach ($maternity_progress as $progress): MaternityProgress::firstOrCreate([ "id" => $progress['Id'], "name" => $progress['Progress'], "color" => $progress['Color'] ]); endforeach; } }