Files
lelong/app/Events/PaymentNotify.php
T
Azfar Arsyad e707f01087 update
2022-02-24 09:30:56 +08:00

32 lines
638 B
PHP

<?php
namespace App\Events;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class PaymentNotify implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $response;
public $userid;
public function __construct($response,$userid)
{
$this->response = $response;
$this->userid = $userid;
}
public function broadcastOn()
{
return ['payment-notify'];
}
public function broadcastAs()
{
return 'trigger-payment';
}
}