Files
lelong/app/Events/LelongNotify.php
T
2026-10-05 13:55:16 +08:00

30 lines
570 B
PHP
Executable File

<?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';
}
}