public function validateNewPassword(array $credentials)
    {
        if (isset($this->passwordValidator)) {
            [$password, $confirm] = [
                $credentials['password'],
                $credentials['password_confirmation'],
            ];

            return call_user_func(
                $this->passwordValidator, $credentials
            ) && $password === $confirm;
        }

        return $this->validatePasswordWithDefaults($credentials);
    }
public function validateNewPassword(array $credentials)
    {
        if (isset($this->passwordValidator)) {
            [$password, $confirm] = [
                $credentials['password'],
                $credentials['password_confirmation'],
            ];

            return call_user_func(
                $this->passwordValidator, $credentials
            ) && $password === $confirm;
        }

        return $this->validatePasswordWithDefaults($credentials);
    }
public function validateNewPassword ( array $ credentials ) { if ( isset ( $ this -> passwordValidator ) ) { [ $ password , $ confirm ] = [ $ credentials [ 'password' ] , $ credentials [ 'password_confirmation' ] , ] ; return call_user_func ( $ this -> passwordValidator , $ credentials ) && $ password === $ confirm ; } return $ this -> validatePasswordWithDefaults ( $ credentials ) ; }
Determine if the passwords match for the request.

@param  array  $credentials
@return bool
Determine if the passwords match for the request .