mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
TTS
This commit is contained in:
23
app/Http/Livewire/Code.php
Normal file
23
app/Http/Livewire/Code.php
Normal 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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user