Skip to content

Commit f7d242e

Browse files
committed
Turn off timestamps when setting last login.
1 parent 72574a7 commit f7d242e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Auth/Eloquent/User.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,13 @@ public function setLastLogin($time)
336336

337337
$model->last_login = $model->fromDateTime($time);
338338

339+
$timestamps = $model->timestamps;
340+
341+
$model->timestamps = false;
342+
339343
$model->save();
344+
345+
$model->timestamps = $timestamps;
340346
}
341347

342348
protected function getPreferences()

0 commit comments

Comments
 (0)