utk dashboard

This commit is contained in:
hafifierahman
2021-10-27 11:13:20 +08:00
parent b1ddf1c2e0
commit 5351f96d22
6 changed files with 140 additions and 0 deletions
+32
View File
@@ -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 TebusNotify implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $response;
public $cawangan;
public function __construct($response,$cawangan)
{
$this->response = $response;
$this->cawangan = $cawangan;
}
public function broadcastOn()
{
return ['tebus-notify'];
}
public function broadcastAs()
{
return 'trigger-tebus';
}
}