I got a vue application inside laravel where i need to implement a real time feature upon successful authentication. it's a stateless authentication.
The authentication works fine, however i am not able to subscribe to a global presence channel using laravel echo.
I am also passing the auth token inside the echo configuration object like this:
auth: {
headers: {
'Authorization': token
}
}
I've also set the broadcast::route()
middleware to broadcast::route(['middleware' => ['jwt,auth']])
because i am tymondesign/jwt package for creating tokens,
Also declared broadcast route which returns the auth user data.
Please advice me on this.
Thanks
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community