Last change
on this file since c433da6 was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
508 bytes
|
Rev | Line | |
---|
[0924b6c] | 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 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.