e29a5891c8
Reviewed-on: #5 Co-authored-by: ISMAIL MASSERAN <ismail@koppkb.com> Co-committed-by: ISMAIL MASSERAN <ismail@koppkb.com>
31 lines
603 B
PHP
31 lines
603 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use Illuminate\Broadcasting\InteractsWithSockets;
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
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';
|
|
}
|
|
}
|