Nahid\Talk\Live\Webcast::handle PHP Метод

handle() публичный Метод

* Execute the job.
public handle ( Broadcast $broadcast )
$broadcast Broadcast
    public function handle(Broadcast $broadcast)
    {
        $this->broadcast = $broadcast;
        $toUser = $this->message['sender']['id'] == $this->message['conversation']['user_one'] ? $this->message['conversation']['user_two'] : $this->message['conversation']['user_one'];
        $channelForUser = $this->broadcast->getConfig('broadcast.app_name') . '-user-' . $toUser;
        $channelForConversation = $this->broadcast->getConfig('broadcast.app_name') . '-conversation-' . $this->message['conversation_id'];
        $this->broadcast->pusher->trigger([$channelForUser, $channelForConversation], 'talk-send-message', $this->message);
    }