kenken999/php
0
1<?php2 3use Illuminate\Support\Facades\Broadcast;4 5/*6|--------------------------------------------------------------------------7| Broadcast Channels8|--------------------------------------------------------------------------9|10| Here you may register all of the event broadcasting channels that your11| application supports. The given channel authorization callbacks are12| used to check if an authenticated user can listen to the channel.13|14*/15 16Broadcast::channel('App.Models.User.{id}', function ($user, $id) {17 return (int) $user->id === (int) $id;18});19 