class Illuminate / Auth / Passwords / PasswordBroker
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

PasswordBroker

Implements

Properties

protected

$tokens TokenRepositoryInterface

The password token repository.

Default: null
protected

$users UserProvider

The user provider implementation.

Default: null

Methods

public

__construct ( TokenRepositoryInterface $tokens , UserProvider $users ) : void

Create a new password broker instance.

Parameters

public

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

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

public

deleteToken ( CanResetPassword $user ) : void

Delete password reset tokens of the given user.

Parameters

public

tokenExists ( CanResetPassword $user , $token ) : bool

Validate the given password reset token.

Parameters

public

getRepository ( ) : TokenRepositoryInterface

Get the password reset token repository implementation.