From 73adf0f38cb8753688b84c1e3bae21b414ca5e2c Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sun, 12 Feb 2023 02:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E5=B9=BF=E6=92=AD?= =?UTF-8?q?=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Events/Users.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Events/Users.php b/app/Events/Users.php index 5202abb..2a17659 100644 --- a/app/Events/Users.php +++ b/app/Events/Users.php @@ -20,7 +20,7 @@ class Users extends Event implements ShouldBroadcastNow public array|Model $data; - public null|Module $module = null; + public ?Module $module = null; public string $event = 'notification'; @@ -79,4 +79,9 @@ public function broadcastAs(): string { return 'messages'; } + + public function broadcastQueue(): string + { + return 'notifications'; + } }