Skip to content

Instantly share code, notes, and snippets.

View fernando-ayon's full-sized avatar
🌮
On vacation

Fernando fernando-ayon

🌮
On vacation
  • Orléans
View GitHub Profile
@fernando-ayon
fernando-ayon / massInsertOrUpdate.php
Created January 25, 2021 21:46 — forked from RuGa/massInsertOrUpdate.php
Mass (bulk) insert or update on duplicate for Laravel 4/5
/**
* Mass (bulk) insert or update on duplicate for Laravel 4/5
*
* insertOrUpdate([
* ['id'=>1,'value'=>10],
* ['id'=>2,'value'=>60]
* ]);
*
*
* @param array $rows