改进 广播队列

This commit is contained in:
iVampireSP.com 2023-02-12 02:00:13 +08:00
parent 4850e4016e
commit 73adf0f38c
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

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