mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
24 lines
633 B
PHP
24 lines
633 B
PHP
<?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,
|
|
]);
|
|
}
|
|
}
|