PasswordBroker
class PasswordBroker implements PasswordBroker (View source)
Properties
| protected TokenRepositoryInterface | $tokens | The password token repository.  | 
                |
| protected UserProvider | $users | The user provider implementation.  | 
                
Methods
Create a new password broker instance.
Send a password reset link to a user.
Validate a password reset for the given credentials.
Get the user for the given credentials.
Get the password reset token repository implementation.
Details
        
                            void
    __construct(TokenRepositoryInterface $tokens, UserProvider $users)
        
    
    Create a new password broker instance.
        
                            string
    sendResetLink(array $credentials, Closure|null $callback = null)
        
    
    Send a password reset link to a user.
        
                            mixed
    reset(array $credentials, Closure $callback)
        
    
    Reset the password for the given token.
        
                    protected        CanResetPassword|string
    validateReset(array $credentials)
        
    
    Validate a password reset for the given credentials.
        
                            CanResetPassword|null
    getUser(array $credentials)
        
    
    Get the user for the given credentials.
        
                            string
    createToken(CanResetPassword $user)
        
    
    Create a new password reset token for the given user.
        
                            void
    deleteToken(CanResetPassword $user)
        
    
    Delete password reset tokens of the given user.
        
                            bool
    tokenExists(CanResetPassword $user, string $token)
        
    
    Validate the given password reset token.
        
                            TokenRepositoryInterface
    getRepository()
        
    
    Get the password reset token repository implementation.