Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquent Insert On Duplicate Key

Eloquent Insert On Duplicate Key Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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:

  • Fluent insertOnDuplicateKeyUpdate() method on the query builder
  • True bulk upsert in one database round trip
  • Choose which columns to update on conflict
  • Works alongside existing Eloquent builder methods
  • Simple drop-in usage with no service provider configuration
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package