summaryrefslogtreecommitdiff
path: root/routes/channels.php
diff options
context:
space:
mode:
authorhorus2020-02-17 13:17:18 +0100
committerhorus2020-02-17 13:17:18 +0100
commit9ea335ab9c8f9e17e8ce8b6a7e76962bec7ed418 (patch)
treedec69240d0d34eebce1cca7aab1f070742187fed /routes/channels.php
downloadzeitumstellung-9ea335ab9c8f9e17e8ce8b6a7e76962bec7ed418.tar.gz
Initial commit.
Diffstat (limited to 'routes/channels.php')
-rw-r--r--routes/channels.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/routes/channels.php b/routes/channels.php
new file mode 100644
index 0000000..f16a20b
--- /dev/null
+++ b/routes/channels.php
@@ -0,0 +1,16 @@
+<?php
+
+/*
+|--------------------------------------------------------------------------
+| Broadcast Channels
+|--------------------------------------------------------------------------
+|
+| Here you may register all of the event broadcasting channels that your
+| application supports. The given channel authorization callbacks are
+| used to check if an authenticated user can listen to the channel.
+|
+*/
+
+Broadcast::channel('App.User.{id}', function ($user, $id) {
+ return (int) $user->id === (int) $id;
+});