We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b998278 commit 878de21Copy full SHA for 878de21
src/BuilderTrait.php
@@ -84,9 +84,9 @@ public function update(array $values)
84
$affectedRecords = $this->getAffectedRecords();
85
86
// update main table records
87
- /*if (! $this->query->increment($this->model->getLatestVersionColumn(), 1, $values)) {
+ if (! $this->query->increment($this->model->getLatestVersionColumn(), 1, $values)) {
88
return false;
89
- }*/
+ }
90
91
// update all versions in case primary key value has been changed
92
$db = $this->model->getConnection();
@@ -97,7 +97,7 @@ public function update(array $values)
97
98
}
99
100
- dd($affectedRecords);
+
101
// update version table records
102
foreach ($affectedRecords as $record) {
103
// get versioned values from record
0 commit comments