Skip to content

Commit

Permalink
Register new channel
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkregel committed May 20, 2024
1 parent 7e42c48 commit 45ece2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions routes/channels.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});

Broadcast::channel('App.Models.Person.{id}', function ($user, $id) {
return (int) $user->person()->id === (int) $id;
});

0 comments on commit 45ece2e

Please sign in to comment.