Esempio n. 1
0
 /**
  * Set the last_login timestamp in the database
  *
  * @param string $userId
  */
 protected function setLastLogin($userId)
 {
     $user = $this->userService->findById($userId);
     $result = $this->userService->update($user, ['last_login' => time()]);
 }