public function needsRehash($hashedValue, array $options = [])
{
$cost = array_get($options, 'cost', $this->rounds);
$hashedValue = str_replace('$2a$', '$2y$', $hashedValue);
return password_needs_rehash($hashedValue, PASSWORD_BCRYPT, ['cost' => $cost]);
}