i have problem in authorization from laravel-echo-server to laravel app .
i'm activate BroadcastServiceProvider as laravel echo documentation but the response code from laravel application 500 tokenmismatchexception.
i think the problem in pushing session and cookie to socket session .
but it's work in public channel .
any one have solution for this issue ?
The issue sounds like your having an authentication issue.
Are you making sure to pass the CSRF token through your request as a parameter?
Out of the box Laravel provides some scaffolding for this insertion with Vue requests. Is it possible you removed this or are doing something different?
Yes, either run php artisan make:auth or add the csrf token to a meta tag in the head of your base layout file like <meta name="csrf-token" content="{{ csrf_token() }}">
i do that , the same problem is still.
i'm using vue and default auth .
the request comes from laravel-echo-server to check if current user can access the private channel or not.
this request didn't contain the laravel cookies and session .
the problem bigger that csrf token .