|
|
|
@ -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!'; |
|
|
|
}); |
|
|
|
|