app/Providers/BroadcastServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        Broadcast::routes();
        Broadcast::channel('streaming-channel.{streamId}', function ($user) {
            return ['id' => $user->id, 'name' => $user->name];
        });
        require base_path('routes/channels.php');
    }
public function boot ( ) { Broadcast :: routes ( ) ; Broadcast :: channel ( 'streaming-channel.{streamId}' , function ( $ user ) { return [ 'id' => $ user -> id , 'name' => $ user -> name ] ; } ) ; require base_path ( 'routes/channels.php' ) ; }
Bootstrap any application services.
Bootstrap any application services .