Browse code

initial-commit

rcraig12 authored on 11/11/2018 19:37:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,16 @@
1
+<?php
2
+
3
+/*
4
+|--------------------------------------------------------------------------
5
+| Broadcast Channels
6
+|--------------------------------------------------------------------------
7
+|
8
+| Here you may register all of the event broadcasting channels that your
9
+| application supports. The given channel authorization callbacks are
10
+| used to check if an authenticated user can listen to the channel.
11
+|
12
+*/
13
+
14
+Broadcast::channel('App.User.{id}', function ($user, $id) {
15
+    return (int) $user->id === (int) $id;
16
+});