public function normalizeChannelName($channel)
    {
        if ($this->isGuardedChannel($channel)) {
            return Str::startsWith($channel, 'private-')
                ? Str::replaceFirst('private-', '', $channel)
                : Str::replaceFirst('presence-', '', $channel);
        }

        return $channel;
    }
public function normalizeChannelName($channel)
    {
        if ($this->isGuardedChannel($channel)) {
            return Str::startsWith($channel, 'private-')
                ? Str::replaceFirst('private-', '', $channel)
                : Str::replaceFirst('presence-', '', $channel);
        }

        return $channel;
    }
public function normalizeChannelName ( $ channel ) { if ( $ this -> isGuardedChannel ( $ channel ) ) { return Str :: startsWith ( $ channel , 'private-' ) ? Str :: replaceFirst ( 'private-' , '' , $ channel ) : Str :: replaceFirst ( 'presence-' , '' , $ channel ) ; } return $ channel ; }
Remove prefix from channel name.

@param  string  $channel
@return string
Remove prefix from channel name .