I am trying to make my app app connect to pusher on a private channel.
But I am getting the following error:
pusher.js?b3eb:593 POST http://localhost:8000/broadcasting/auth 404 (Not Found)
What maybe the cause of the error and how to resolve it.
I am trying to make my app app connect to pusher on a private channel.
But I am getting the following error:
pusher.js?b3eb:593 POST http://localhost:8000/broadcasting/auth 404 (Not Found)
What maybe the cause of the error and how to resolve it.
Look in config/app.php if you have uncommented
App\Providers\BroadcastServiceProvider::class,
Complete These Steps
1) In config/app.php uncomment this line-
App\Providers\BroadcastServiceProvider::class, 2) If above not work and still you've got the error - then I'm sure you are not logged in. Just login to your account and check(because it's your private broadcast).
It'll solve your issue and since you can also pass additional auth parameters as your need in app\Providers\BroadcastServiceProvider.php
Broadcast::routes(['middleware' => 'auth:admin']); Laravel 11:
check bootstrap/app.php. It should contain channels param with correct path to the file:
return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__.'/../routes/web.php', api: __DIR__.'/../routes/api.php', commands: __DIR__.'/../routes/console.php', //this line: channels: __DIR__.'/../routes/channels.php', health: '/up', ) php artisan install:broadcasting
localhost:8000which can handle requests to/broadcasting/auth. The Pusher server libraries provide helper functions for handling these requests.BroadcastServiceProviderclasses uncommented in thconfig/app. Have cleared compiled services , config cache and route cache. Still doesn't work.