Laravel 12 event not received in frontend using Pusher with vanilla js client

Laravel 12 event not received in frontend using Pusher with vanilla js client

Here are some images that display what I did on my project

The Problem is :

The event doesn't trigger on the front end, so I get no output on the console. Also, nothing appears in the Pusher Debug Console. However, when I switch to the log driver, I see that the event is dispatched correctly.

Read more

[this is cal event in main routeand this is request from js client

this is an event

this is broadcast.php in config

Answer

If you are using QUEUE_CONNECTION=database please remove it & use QUEUE_CONNECTION=sync. then event triggering part will work.

Enjoyed this article?

Check out more content on our blog or follow us on social media.

Browse more articles