Skip to content

Commit 6c61380

Browse files
authored
Update queries.md
1 parent 9cb53e6 commit 6c61380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: queries.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ If the table has an auto-incrementing id, use the `insertGetId` method to insert
877877
<a name="upserts"></a>
878878
### Upserts
879879

880-
The `upsert` method will insert records that do not exist and update the records that already exist with new values that you may specify. The method's first argument consists of the values to insert or update, while the second argument lists the column(s) that uniquely identify records within the associated table. The method's third and final argument is an array of columns that should be updated if a matching record already exists in the database:
880+
The `upsert` method will insert records that do not exist and update the records that already exist with new values that you may specify. The method's first argument consists of the values to insert or update, while the second argument lists the column(s) that uniquely identify records within the associated table. The method's third and final argument is an array of columns that should be updated if a matching record already exists in the database, while all columns will be updated if this argument is omitted:
881881

882882
DB::table('flights')->upsert(
883883
[

0 commit comments

Comments
 (0)