update
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user