Your IP : 3.148.115.187


Current Path : /home/lentoinv/props/vendor/laravel/framework/src/Illuminate/Broadcasting/
Upload File :
Current File : /home/lentoinv/props/vendor/laravel/framework/src/Illuminate/Broadcasting/PrivateChannel.php

<?php

namespace Illuminate\Broadcasting;

use Illuminate\Contracts\Broadcasting\HasBroadcastChannel;

class PrivateChannel extends Channel
{
    /**
     * Create a new channel instance.
     *
     * @param  \Illuminate\Contracts\Broadcasting\HasBroadcastChannel|string  $name
     * @return void
     */
    public function __construct($name)
    {
        $name = $name instanceof HasBroadcastChannel ? $name->broadcastChannel() : $name;

        parent::__construct('private-'.$name);
    }
}

?>