How do I transform this 

```
DB::table('partners')->insert(array($data));

```

laravel Query to have `ON DUPLICATE KEY UPDATE`

the structure look like

```
$data['program_name'] = $program['program']['_'];
$data['program_id'] = $program_id;
$data['status'] = $program['status'];
$data['shop_name'] = $shop->name;
$data['shop_logo'] = $shop->image;
$data['shop_description'] = $shop->description;

```

where `program_id` is unique