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(['middleware' => ['web']]);
        require base_path('routes/channels.php');
    }
public function boot ( ) { Broadcast :: routes ( [ 'middleware' => [ 'web' ] ] ) ; require base_path ( 'routes/channels.php' ) ; }
Bootstrap any application services.
Bootstrap any application services .
//Broadcast::routes(['middleware' => ['auth:api']]);//isi tambah by wahyono //Broadcast::routes(); //ini originalnya