2. Password Broker
Password Broker in laravel is used to reset
forgotten password for users. PasswordBroker
class will create a token for user and send an
email for the set new password link, where user
can set a new password.
3. PasswordBroker Functions
createToken(CanResetPassword $user)
Create a new password reset token for the
given user.
That token will be send to the user with
the link to reset the password.
A new record will be saved in
password_reset table.
6. PasswordBroker Functions
sendResetLink(array $credentials)
Send a password reset link to a user.
This function will create a token and send
an email with the password reset link to
the user.