Sending Notification from Job requires page reload

I have a Livewire component that has a BulkAction. When it's clicked it dispatches a Job that does some work and then sends a DB Notification to the current user. All works fine, except that I have to reload the current page to be able to see the notification. I tried adding event(new DatabaseNotificationsSent($user)); after notification is ->send();, but this does not solve the problem. Ex:
->sendToDatabase($user)
->send();
->sendToDatabase($user)
->send();
Any ideas?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server