feat(ticket): implement ticket generation on purchase payment and add related tests
This commit is contained in:
14
app/Domains/Purchase/Events/PurchasePaid.php
Normal file
14
app/Domains/Purchase/Events/PurchasePaid.php
Normal 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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user