Slide 38
Slide 38 text
Badges: Password Upgrading
return new Passport(
new UserBadge($email, function ($email) {
// ...
}),
new PasswordCredentials($password),
[
new CsrfTokenBadge('authenticate', $csrfToken),
new PasswordUpgradeBadge($password, $this->userRepository)
]
);
This PasswordUpgradeBadge is no longer required.
Your password will be upgraded automatically as long
as your user provider implements the upgrader interface
(which happens always if you use make:user)