From acee392f762754a412c1bf9fb6bca903e167769a Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Thu, 22 Sep 2022 20:07:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20ServerEvent=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Events/ServerEvent.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Events/ServerEvent.php b/app/Events/ServerEvent.php index f7cc540..1cc32cf 100644 --- a/app/Events/ServerEvent.php +++ b/app/Events/ServerEvent.php @@ -4,17 +4,18 @@ use Illuminate\Broadcasting\Channel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; +use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow; class ServerEvent extends Event implements ShouldBroadcast { - public array $servers; + public array $data; public string $type = 'servers.updated'; public function __construct($servers) { - $this->servers = $servers; + $this->data = $servers; } public function broadcastOn()