diff options
| author | horus | 2020-02-23 23:11:03 +0100 |
|---|---|---|
| committer | horus | 2020-02-23 23:11:03 +0100 |
| commit | 2cd1589d6ae7095770e8c5dda10b138861d70501 (patch) | |
| tree | 7afe6ce2f5f435e375a56c0dd627bd1716a1dbe9 /routes/channels.php | |
| download | senpai-2cd1589d6ae7095770e8c5dda10b138861d70501.tar.gz | |
Initial commit. Calendar is working.
Diffstat (limited to 'routes/channels.php')
| -rw-r--r-- | routes/channels.php | 16 |
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; +}); |
