initial laravel commit

This commit is contained in:
Russ Long
2019-10-29 14:59:29 -04:00
parent df55e9f9b1
commit 0f9d04c7e3
87 changed files with 8258 additions and 5 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;
});