Various updated files.

This commit is contained in:
James Cole
2017-09-09 22:32:11 +02:00
parent 3b9b74b5ea
commit 9223f3ef71
27 changed files with 605 additions and 914 deletions

16
routes/channels.php Normal file
View File

@@ -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;
});