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();
        $dirs = array_filter(glob(base_path('routes') . DIRECTORY_SEPARATOR . '*'), 'is_dir');
        $fileName = 'channels.php';
        foreach ($dirs as $dir) {
            if (file_exists($dir . DIRECTORY_SEPARATOR . $fileName)) {
                require $dir . DIRECTORY_SEPARATOR . $fileName;
            }
        }
    }
public function boot ( ) { Broadcast :: routes ( ) ; $ dirs = array_filter ( glob ( base_path ( 'routes' ) . DIRECTORY_SEPARATOR . '*' ) , 'is_dir' ) ; $ fileName = 'channels.php' ; foreach ( $ dirs as $ dir ) { if ( file_exists ( $ dir . DIRECTORY_SEPARATOR . $ fileName ) ) { require $ dir . DIRECTORY_SEPARATOR . $ fileName ; } } }
Bootstrap any application services.
Bootstrap any application services .