This commit is contained in:
2026-03-25 20:28:04 +01:00
parent 37039f082c
commit 33b4a249cc
9 changed files with 303 additions and 42 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Providers;
use App\Repositories\EventRepository;
use Illuminate\Http\Request;
use SimpleSoftwareIO\QrCode\Facades\QrCode;
class QrCodeUrlProvider {
function __construct(private string $url) {
}
public function createQrCode(Request $request) {
$event = new EventRepository()->getByIdentifier($this->url, false)->toResource()->toArray($request);
return
QrCode::format('png')->size(300)->generate($event['url']);
}
}