pingcrm/routes/channels.php

19 lines
558 B
PHP
Raw Normal View History

2019-03-05 18:10:11 -03:00
<?php
2020-07-29 12:07:37 -03:00
use Illuminate\Support\Facades\Broadcast;
2019-03-05 18:10:11 -03: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.
|
*/
2020-09-08 19:45:49 -03:00
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
2019-03-05 18:10:11 -03:00
return (int) $user->id === (int) $id;
});