Closed ThunderPaul closed 6 years ago
Hello, I was able to reproduce this error, to fix it I just needed to uncomment "App\Providers\BroadcastServiceProvider::class" on the config/app.php file, and add the authorization header on the Echo options, something like this:
new Echo({
// ...
auth: {
headers: {
Authorization: 'Bearer ' + this.$auth.token(),
},
},
});
I will also push a version with Pusher and Laravel Echo already configured, thanks for the idea!
is this fix already?
Hi, I'm using Pusher as live notification system in your boilerplate, with public channel working fine, but I can't use private channel.
This is my code:
TheHeader.vue
Event.php
channel.php
When frontend call URL http://pusher.localhost/broadcasting/auth I have this error:
Can you help me?
Thank you