feat(ticket): implement ticket generation on purchase payment and add related tests

This commit is contained in:
2026-07-21 11:23:17 -03:00
parent a928a2e848
commit c0978033c1
6 changed files with 186 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
<?php
namespace App\Domains\Purchase\Events;
use App\Domains\Purchase\Models\Purchase;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class PurchasePaid
{
use Dispatchable, SerializesModels;
public function __construct(public readonly Purchase $purchase) {}
}