-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No connection for Global content #47
Comments
To expand a little bit on this, the auth ajax request throws an 403 error. |
Hi, as a workaround, put this in the boot method of any service provider:
|
Running into this problem, too, but the workaround doesn't seem to be working. |
Upon further investigation, it seems that the front-end is looking for a channel with four segments: - Broadcast::channel('globals.{id}.{site}', function ($user, $id, $site) {
+ Broadcast::channel('globals.{set}.{id}.{site}', function ($user, $set, $id, $site) { So, to updated @ben182 's helpful comment from before, you might need to put the following in Broadcast::channel('globals.{set}.{id}.{site}', function ($user, $set, $id, $site) {
return [
'name' => $user->name(),
'id' => $user->id(),
'title' => $user->title(),
'email' => $user->email(),
'avatar' => $user->avatar(),
'initials' => $user->initials(),
];
}); |
It seems collaboration does not work for Global content. Perhaps this is because the content is structured differently and stored in the
data
array?The text was updated successfully, but these errors were encountered: