| 1 | <?php |
||
| 8 | class BroadcastServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Bootstrap any application services. |
||
| 12 | * |
||
| 13 | * @return void |
||
| 14 | */ |
||
| 15 | 186 | public function boot() |
|
| 16 | { |
||
| 17 | 186 | Broadcast::routes(); |
|
| 18 | |||
| 19 | /* |
||
| 20 | * Authenticate the user's personal channel... |
||
| 21 | */ |
||
| 22 | 186 | Broadcast::channel('App.User.*', function ($user, $userId) { |
|
| 23 | return (int) $user->id === (int) $userId; |
||
| 24 | 186 | }); |
|
| 25 | 186 | } |
|
| 26 | |||
| 27 | 186 | public function register() |
|
| 30 | } |
||
| 31 |