PHP 8.3.31
Preview: UsePusherChannelConventions.php Size: 821 B
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Broadcasting/Broadcasters/UsePusherChannelConventions.php

<?php

namespace Illuminate\Broadcasting\Broadcasters;

use Illuminate\Support\Str;

trait UsePusherChannelConventions
{
    /**
     * Return true if the channel is protected by authentication.
     *
     * @param  string  $channel
     * @return bool
     */
    public function isGuardedChannel($channel)
    {
        return Str::startsWith($channel, ['private-', 'presence-']);
    }

    /**
     * Remove prefix from channel name.
     *
     * @param  string  $channel
     * @return string
     */
    public function normalizeChannelName($channel)
    {
        foreach (['private-encrypted-', 'private-', 'presence-'] as $prefix) {
            if (Str::startsWith($channel, $prefix)) {
                return Str::replaceFirst($prefix, '', $channel);
            }
        }

        return $channel;
    }
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
6.53 KB lrw-rw-rw- 2025-09-17 06:52:59
Edit Download
10.91 KB lrw-rw-rw- 2025-09-17 06:52:59
Edit Download
1.06 KB lrw-rw-rw- 2025-09-17 06:52:59
Edit Download
462 B lrw-rw-rw- 2025-09-17 06:52:59
Edit Download
5.53 KB lrw-rw-rw- 2025-09-17 06:52:59
Edit Download
4.32 KB lrw-rw-rw- 2025-09-17 06:52:59
Edit Download
821 B lrw-rw-rw- 2025-09-17 06:52:59
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).