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:
Any ideas?0 Replies