Пример #1
0
 /**
  * Update the "remember me" token for the given user in storage.
  *
  * @param \Illuminate\Contracts\Auth\Authenticatable $user
  * @param string $token
  */
 public function updateRememberToken(Authenticatable $user, $token)
 {
     $this->user->updateRememberToken($user->getAuthIdentifier(), $token);
 }
Пример #2
0
 /**
  * ユーザの電話番号をアップデート
  *
  * @param mixed   $userId
  * @param string  $phoneNumber
  *
  * @return bool
  */
 public function updatePhoneNumber($userId, $phoneNumber)
 {
     $phoneNumber = '+81' . substr($phoneNumber, 1);
     $result = $this->userModel->updateUser($userId, ['phone_number' => $phoneNumber]);
     return $result === 1;
 }