terranc/eloquent-insert-on-duplicate-key
A Laravel Eloquent helper for MySQL upserts, adding INSERT ... ON DUPLICATE KEY UPDATE support so you can insert or update rows in a single query. A small, focused package for bulk-save workflows that would otherwise need raw SQL.
terranc/eloquent-insert-on-duplicate-key adds MySQL INSERT ... ON DUPLICATE KEY UPDATE support to Laravel's Eloquent query builder, letting you bulk-insert rows and update existing ones in a single query—no raw SQL or per-row existence checks required.
Features:
insertOnDuplicateKeyUpdate() method on the query builderHow can I help you explore Laravel packages today?