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.
updated_at
$set
1 parent 2724144 commit 03aa707Copy full SHA for 03aa707
src/Eloquent/Builder.php
@@ -325,6 +325,9 @@ protected function addUpdatedAtColumn(array $values)
325
}
326
327
$column = $this->model->getUpdatedAtColumn();
328
+ if (array_key_exists('$set', $values) && array_key_exists($column, $values['$set'])) {
329
+ return $values;
330
+ }
331
$values = array_replace(
332
[$column => $this->model->freshTimestampString()],
333
$values,
0 commit comments