Files
kaunter/app/Events/Dashboard/PetibesiNotify.php
hafifierahman dd4954b9c2 fix skit bug
2021-11-02 01:15:59 +08:00

32 lines
659 B
PHP

<?php
namespace App\Events\Dashboard;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class PetibesiNotify 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 ['petibesi-notify'];
}
public function broadcastAs()
{
return 'trigger-petibesi';
}
}