I found the solution, in boostrapp.js simply add authEndpoint in Laravel Echo initialisation
window.Echo = new Echo({ authEndpoint: 'http://10.15.66.9:9090/myapp/public/broadcasting/auth', broadcaster: 'pusher', key: 'xxxxxxxxxxxxxx' });
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I am using Laravel 5.4 and pusher. I have a problem with the broadcast auth route since i deploy my application on server. I get this error: POST http://10.15.66.9:9090/broadcasting/auth 404 (Not Found) My application base url on server is http://10.15.66.9:9090/myapp/public/
in .env file: APP_URL=http://10.15.66.9:9090/myapp/public
in app.php
'url' => env('APP_URL', ''),
but pusher is still posting to http://10.15.66.9:9090/broadcasting/auth
Can anyone help me?
I found the solution, in boostrapp.js simply add authEndpoint in Laravel Echo initialisation
window.Echo = new Echo({ authEndpoint: 'http://10.15.66.9:9090/myapp/public/broadcasting/auth', broadcaster: 'pusher', key: 'xxxxxxxxxxxxxx' });
Please or to participate in this conversation.