class
Illuminate
/
Auth
/
Passwords
/
PasswordBroker
You are viewing an older version of the documentation. For the latest, please visit master documentation.
PasswordBroker
Implements
Properties
Methods
public
__construct ( TokenRepositoryInterface $tokens , UserProvider $users ) : void
Create a new password broker instance.
Parameters
- $tokens TokenRepositoryInterface
- $users UserProvider
public
sendResetLink ( array $credentials , Closure $callback ) : string
Send a password reset link to a user.
Parameters
- $credentials array
- $callback Closure |null
public
reset ( array $credentials , Closure $callback ) : mixed
Reset the password for the given token.
Parameters
- $credentials array
- $callback Closure
protected
validateReset ( array $credentials ) : CanResetPassword |string
Validate a password reset for the given credentials.
Parameters
- $credentials array
public
getUser ( array $credentials ) : CanResetPassword |null
Get the user for the given credentials.
Parameters
- $credentials array
public
createToken ( CanResetPassword $user ) : string
Create a new password reset token for the given user.
Parameters
- $user CanResetPassword
public
deleteToken ( CanResetPassword $user ) : void
Delete password reset tokens of the given user.
Parameters
- $user CanResetPassword
public
tokenExists ( CanResetPassword $user , $token ) : bool
Validate the given password reset token.
Parameters
- $user CanResetPassword
- $token string
public
getRepository ( ) : TokenRepositoryInterface
Get the password reset token repository implementation.