Files
librenms-librenms/routes/channels.php
T

19 lines
558 B
PHP
Raw Normal View History

2018-05-09 08:05:17 -05:00
<?php
2021-10-03 01:04:59 +02:00
use Illuminate\Support\Facades\Broadcast;
2018-05-09 08:05:17 -05: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.
|
*/
2021-10-03 01:04:59 +02:00
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
2018-05-09 08:05:17 -05:00
return (int) $user->id === (int) $id;
});