30 lines
520 B
PHP
30 lines
520 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace App\Events;
|
||
|
|
||
|
use App\Models\Payment;
|
||
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
||
|
use Illuminate\Foundation\Events\Dispatchable;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
|
||
|
class PaymentEvent
|
||
|
{
|
||
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||
|
|
||
|
/**
|
||
|
* @var User
|
||
|
*/
|
||
|
public Payment $payment;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Create a new event instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct(Payment $payment)
|
||
|
{
|
||
|
$this->payment = $payment;
|
||
|
}
|
||
|
}
|