X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=routes%2Fchannels.php;fp=routes%2Fchannels.php;h=4302bb7d72871176f7d244756cdc14ca64197566;hb=2efd7613561696a3abb19ee9f42b15cf9b4058ad;hp=5d451e1fae88c81c097aa55de6ff039a3cc0a1c3;hpb=edd0e97bfdc544114f30bf4c13a929631c44a555;p=alttp.git diff --git a/routes/channels.php b/routes/channels.php index 5d451e1..4302bb7 100644 --- a/routes/channels.php +++ b/routes/channels.php @@ -14,5 +14,9 @@ use Illuminate\Support\Facades\Broadcast; */ Broadcast::channel('App.Models.User.{id}', function ($user, $id) { - return (int) $user->id === (int) $id; + return (int) $user->id === (int) $id; +}); + +Broadcast::channel('App.Control', function ($user) { + return true; });