ldc-mesbr-app/routes/channels.php

17 lines
538 B
PHP
Raw Normal View History

2019-01-15 14:17:15 +01:00
<?php
/*
2025-04-03 09:30:16 +02:00
|--------------------------------------------------------------------------
| 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.
|
2019-01-15 14:17:15 +01:00
*/
Broadcast::channel('App.User.{id}', function ($user, $id) {
2021-04-27 17:29:47 +02:00
return (int)$user->id === (int)$id;
2019-01-15 14:17:15 +01:00
});