fix skit2

This commit is contained in:
MUHD HAFIFIE
2021-05-24 16:59:58 +08:00
parent dd0ca831da
commit 0e977ecb62
15 changed files with 306 additions and 101 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Events;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class NotifikasiAGH implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $kodcaw,$message,$typeerror,$pc;
public function __construct($kodcaw,$message,$typeerror,$pc)
{
$this->kodcaw = $kodcaw;
$this->message = $message;
$this->typeerror = $typeerror;
$this->pc = $pc;
}
public function broadcastOn()
{
return ['notice-agh'];
}
public function broadcastAs()
{
return 'my-agh';
}
}