public function delete(TwoFactorAuthenticatable $user)
    {
        $key = env('AUTHY_KEY');

        $options = $user->getTwoFactorAuthProviderOptions();

        (new HttpClient)->post(
            'https://api.authy.com/protected/json/users/delete/'.$options['id'].'?api_key='.$key
        );

        $user->setTwoFactorAuthProviderOptions([]);
    }
public function delete(TwoFactorAuthenticatable $user)
    {
        $key = env('AUTHY_KEY');

        $options = $user->getTwoFactorAuthProviderOptions();

        (new HttpClient)->post(
            'https://api.authy.com/protected/json/users/delete/'.$options['id'].'?api_key='.$key
        );

        $user->setTwoFactorAuthProviderOptions([]);
    }
public function delete ( TwoFactorAuthenticatable $ user ) { $ key = env ( 'AUTHY_KEY' ) ; $ options = $ user -> getTwoFactorAuthProviderOptions ( ) ; ( new HttpClient ) -> post ( 'https://api.authy.com/protected/json/users/delete/' . $ options [ 'id' ] . '?api_key=' . $ key ) ; $ user -> setTwoFactorAuthProviderOptions ( [ ] ) ; }
Delete the given user from the provider.

@param  \Laravel\Spark\Contracts\Auth\TwoFactor\Authenticatable  $user
@return bool
Delete the given user from the provider .