Kimmer
202
2
Laravel

Notifications broadcast change channel name

Posted 2 months ago by Kimmer

Broadcasting a notification will result in a channel name like "private-App.Models.User.1".

I would prefer to not send over the users ID in the channel name so I want to change the channel name and use the users hashId instead.

Is there anyway I can change the channel name?

I found this page which, as I understand, describes the solution. https://github.com/laravel/ideas/issues/202

I just can't seem to figure out how to implement this.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.