Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Alodon's avatar

POST http://localhost/broadcasting/auth 404 (Not Found)

I am trying to use the pusher. But now I am getting this error in my console. Please help me how can I solve this.

0 likes
6 replies
Alodon's avatar

No, I have checked I Broadcast::routes() method is there.

bobbybouwmann's avatar

If you run php artisan route:list do you see the route then?

Cristhian Ortellado's avatar

I have the answer! The problem happen when you enable the BroadcastServiceProvider the class use this method Broadcast::routes() and this add the route /broadcasting/auth to our Route list but to be able to see this route first you will need to run php artisan route:cache !!!!!!

Please or to participate in this conversation.