Laravel_Echo_Tutorial
Laravel_Echo_Tutorial copied to clipboard
Auth 0 authetication error
Hi,
I have setup all your code on my local system but always it comes with 403 error in broadcast authentication url. Please help me to resolve this problem.
Thanks Harish Kumar
Same here. It throws a POST error on broadcasting/auth 403 (Forbidden) and does not broadcast to other users.
What should I do? any suggestions? It would be greatly appreciated! Thanks.
hi you can use in your BroadcastServiceProvider
public function boot()
{
Broadcast::routes(['middleware' => 'auth']);
require base_path('routes/channels.php');
}