This commit is contained in:
HolgerHatGarKeineNode
2023-04-29 01:29:23 +02:00
parent c6ee8f9854
commit 23b97b4dc5
4 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Http\Livewire;
use Livewire\Component;
use SimpleSoftwareIO\QrCode\Facades\QrCode;
class Code extends Component
{
public function render()
{
$qrCode = base64_encode(QrCode::format('png')
->size(500)
->merge('/public/img/einundzwanzig.png', .3)
->errorCorrection('H')
->generate('https://portal.einundzwanzig.space/hello'));
return view('livewire.code', [
'qrCode' => $qrCode,
]);
}
}