update
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events;
|
||||
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Broadcasting\InteractsWithSockets;
|
||||
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
||||
|
||||
class LelongNotify implements ShouldBroadcast
|
||||
{
|
||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||
|
||||
public $status;
|
||||
|
||||
public function __construct($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
public function broadcastOn()
|
||||
{
|
||||
return ['lelong-notify'];
|
||||
}
|
||||
|
||||
public function broadcastAs()
|
||||
{
|
||||
return 'trigger-lelong';
|
||||
}
|
||||
}
|
||||
@@ -13,11 +13,13 @@ class PaymentNotify implements ShouldBroadcast
|
||||
|
||||
public $response;
|
||||
public $userid;
|
||||
public $paymentid;
|
||||
|
||||
public function __construct($response,$userid)
|
||||
public function __construct($response,$userid,$paymentid)
|
||||
{
|
||||
$this->response = $response;
|
||||
$this->userid = $userid;
|
||||
$this->paymentid = $paymentid;
|
||||
}
|
||||
|
||||
public function broadcastOn()
|
||||
|
||||
Reference in New Issue
Block a user