X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=routes%2Fchannels.php;h=e93d25e9c284e4afa7c4c91876f6688e97133590;hb=5b21bf8a7e7efed35389c693fcf3775d6ee3f0ec;hp=4302bb7d72871176f7d244756cdc14ca64197566;hpb=2efd7613561696a3abb19ee9f42b15cf9b4058ad;p=alttp.git diff --git a/routes/channels.php b/routes/channels.php index 4302bb7..e93d25e 100644 --- a/routes/channels.php +++ b/routes/channels.php @@ -1,5 +1,6 @@ can('viewProtocol', $tournament); +}); + +Broadcast::channel('Tournament.{id}', function ($user, $id) { + $tournament = Tournament::findOrFail($id); + return true; +});