Laravel Echo failing on broadcast auth
Hey everyone,
Running in to an issue with using laravel echo in a custom page through filament.
The jist of it is that it's currently failing the
I've added the following configuration to my
The
If I remove that entirely it will result in a
I've tried adding
I'm assuming I'm doing something wrong here related to what authentication middleware I should be using but I'm not entirely sure
Here is the code where I'm setting Echo:
It's connecting to Pusher properly, just failing the auth
Running in to an issue with using laravel echo in a custom page through filament.
The jist of it is that it's currently failing the
/broadcast/auth call. I've added the following configuration to my
BroadcastServiceProviderThe
Authenticate::class is coming from Filament\Http\Middleware\Authenticate. This will result in a 302 redirect to login from the broadcasting auth endpoint.If I remove that entirely it will result in a
403 Forbidden. I've tried adding
'auth' to the middleware but this also results in 302I'm assuming I'm doing something wrong here related to what authentication middleware I should be using but I'm not entirely sure
Here is the code where I'm setting Echo:
It's connecting to Pusher properly, just failing the auth
Solution
Seems the fix is to set broadcasting route middelware to web instead of the guard