guidocella/eloquent-insert-on-duplicate-key

Don't work with PostgreSQL

Closed this issue · 2 comments

 Illuminate\Database\QueryException  : SQLSTATE[42601]: Syntax error: 7 ERROR:  syntax error at or near "duplicate"
LINE 1: ...3, $654), ($655, $656, $657, $658, $659, $660) on duplicate ...

This package if for MySql/MariaDB. I don't know PostgreSQL.

You can use this package for PostgreSQL: https://github.com/staudenmeir/laravel-upsert