From 33084d7da2075dc828380cec47455c62b16d55ef Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 8 Sep 2026 11:00:06 +0800 Subject: [PATCH] =?UTF-8?q?ws=E6=B5=8B=E8=AF=956?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/admin/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/admin/api.php b/routes/admin/api.php index 53e38e2..c578b00 100644 --- a/routes/admin/api.php +++ b/routes/admin/api.php @@ -52,7 +52,7 @@ Route::group(['prefix' => 'admin'], function () { // get测试区 Route::get('/test_broadcast', function () { - event((new App\Events\SendAnnouncement('测试消息,Hello'))); + \App\Events\SendAnnouncement::dispatch("Hello, this is a real-time message!"); return 'Event broadcasted!'; });