F
Filament13mo ago
Shavik

Notifications / Page Events from Laravel Job

I'd like to be able to send notifications from a Laravel job or more specifically from the Batch completion handler on a Job Batch. The 2nd half of this, which is arguably more important to I'd like to have a live update view of a list of 'jobs/tasks'. This is currently realized as a 'report' resource with a 'requisition' relation manager. The table of the relation manager has a 'status' column that displays a badge. I'd like these badges to update in 'real time' (via pusher/soketi broadcast notifications) when jobs are completed. I already have pusher (broadcast) notifications configured and working to the user's private channel. Just not sure how best to go about these 'custom notifications'. Thanks for any insight and help!
No description
6 Replies
Shavik
ShavikOP13mo ago
Well the notification part was easy. Still trying to figure out how to handle a custom 'channel/notification' to cause part of (or the whole thing?) to refresh Welp, I think I figured it out 🙂 Will try to post the simple version of the solution in a bit
awcodes
awcodes13mo ago
Pretty sure there’s nothing simple about this. Lol.
Shavik
ShavikOP13mo ago
I hear that too much 😐
Shavik
ShavikOP13mo ago
Well the top status for the whole 'current resource' works great. it refreshes live. But the rows in the relationshipmanager don't.. OH I need to probably put those listeners in that file.
No description
Shavik
ShavikOP13mo ago
invoice numbers are dummy data 😛
awcodes
awcodes13mo ago
Looks good.
Want results from more Discord servers?
Add your server