Open umairali opened 4 years ago
Are you using sanctum? I have the same problem since I switched from JWT to sanctum.
I solved this issue by removing the below code from the vue component.
Echo.join(chat.${roomId}
)
.here((users) => {
//
})
.joining((user) => {
console.log(user.name);
})
.leaving((user) => {
console.log(user.name);
});
If you're using Sanctum try setting up the middleware for the broadcasting routes in Providers/BroadcastServiceProvider: Broadcast::routes([ 'prefix' => 'api', 'middleware' => ['api', 'auth:sanctum'] ]);
I solved this issue by removing the below code from the vue component.
Echo.join(
chat.${roomId}
) .here((users) => { // }) .joining((user) => { console.log(user.name); }) .leaving((user) => { console.log(user.name); });
Hi @umairali, can you please expound on your solution? May I know the version of your Laravel?
thanks
Everything was working fine but when i try to run
laravel-echo-server start
from supervisor below error appear.