使用队列进行通知

This commit is contained in:
iVampireSP.com 2023-02-12 01:52:54 +08:00
parent 652821fcff
commit 43ff24d276
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 15 additions and 0 deletions

View File

@ -72,4 +72,12 @@ public function toArray(): array
'event' => 'notifications',
];
}
public function viaQueues(): array
{
return [
WebChannel::class => 'notifications',
'mail' => 'notifications',
];
}
}

View File

@ -48,4 +48,11 @@ public function via(): array
{
return [WebChannel::class];
}
public function viaQueues(): array
{
return [
WebChannel::class => 'notifications',
];
}
}