public function routes(array $attributes = null)
    {
        if ($this->app->routesAreCached()) {
            return;
        }

        $attributes = $attributes ?: ['middleware' => ['web']];

        $this->app['router']->group($attributes, function ($router) {
            $router->match(
                ['get', 'post'], '/broadcasting/auth',
                '\\'.BroadcastController::class.'@authenticate'
            );
        });
    }
public function routes(array $attributes = null)
    {
        if ($this->app->routesAreCached()) {
            return;
        }

        $attributes = $attributes ?: ['middleware' => ['web']];

        $this->app['router']->group($attributes, function ($router) {
            $router->match(
                ['get', 'post'], '/broadcasting/auth',
                '\\'.BroadcastController::class.'@authenticate'
            );
        });
    }
public function routes ( array $ attributes = null ) { if ( $ this -> app -> routesAreCached ( ) ) { return ; } $ attributes = $ attributes ? : [ 'middleware' => [ 'web' ] ] ; $ this -> app [ 'router' ] -> group ( $ attributes , function ( $ router ) { $ router -> match ( [ 'get' , 'post' ] , '/broadcasting/auth' , '\\' . BroadcastController :: class . '@authenticate' ) ; } ) ; }
Register the routes for handling broadcast authentication and sockets.

@param  array|null  $attributes
@return void
Register the routes for handling broadcast authentication and sockets .