Answer the question
In order to leave comments, you need to log in
Laravel problem with private channel?
I'm not getting a private message on my second channel. (although it works for public ones)
created a channel in channels and wrote a comparison for the test:
Broadcast::channel('post.{id}', function ($user, $id) {
// here only authorized users
return 1 === 1;
});
var channel = Echo.private('post.' + this.post.id);
public function broadcastOn()
{
return new PrivateChannel('post.'.$this->comment->post->id);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question