{!! QrCode::size(100)->generate($google2fa->getQRCodeUrl($companyName, $companyEmail, $secretKey)); !!}
Scan me to return to the original page.
```
### [Endroid QR Code Generator](https://github.com/endroid/qr-code)
Generate the data URL
```php
$qrCode = new \Endroid\QrCode\QrCode($value);
$qrCode->setSize(100);
$google2fa_url = $qrCode->writeDataUri();
```
And in your view
```php
{!! $google2fa_url !!}
Scan me to return to the original page.
```
### [Bacon/QRCode](https://github.com/Bacon/BaconQrCode)
```php
getQRCodeUrl(
'pragmarx',
'google2fa@pragmarx.com',
$google2fa->generateSecretKey()
);
$writer = new Writer(
new ImageRenderer(
new RendererStyle(400),
new ImagickImageBackEnd()
)
);
$qrcode_image = base64_encode($writer->writeString($g2faUrl));
```
And show it as an image:
```php