Php Laravel和Pusher-未发送API消息

Php Laravel和Pusher-未发送API消息,php,laravel,pusher,Php,Laravel,Pusher,我正试图让Pusher使用我的Laravel应用程序。我有一个专用通道,用户经过身份验证并连接到它。当我从Pusher调试控制台发送测试消息时,我在我的客户机上收到了条目 我在从L5应用程序向pusher发送事件时遇到问题。事件被触发,我在L5日志中看到以下内容: [2017-03-02 13:07:23] local.INFO: Broadcasting [App\Events\xyz] on channels [private-xyz_35] with payload: { "mes

我正试图让Pusher使用我的Laravel应用程序。我有一个专用通道,用户经过身份验证并连接到它。当我从Pusher调试控制台发送测试消息时,我在我的客户机上收到了条目

我在从L5应用程序向pusher发送事件时遇到问题。事件被触发,我在L5日志中看到以下内容:

[2017-03-02 13:07:23] local.INFO: Broadcasting [App\Events\xyz] on channels [private-xyz_35] with payload:
{
    "message": {
        "user": "35",
        "code": "KKKK1111"
    },
    "socket": null
}  
My.ENV文件和广播配置均已正确配置。当我触发事件时,我在Pusher调试控制台中没有看到API消息

有人能指出我做错了什么吗

这是我的活动:

<?php

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class xyz implements ShouldBroadcast
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    /**
     * Create a new event instance.
     *
     * @return void
     */

    /**
     * Only (!) Public members will be serialized to JSON and sent to Pusher
    **/
    public $message;


    public function __construct($message)
    {
        $this->message = $message;
    }

    /**
     * Get the channels the event should broadcast on.
     *
     * @return Channel|array
     */
    public function broadcastOn()
    {
        return new PrivateChannel('xyz_' . $this->message['user']);
    }
}

我刚刚意识到我忘了验证我推送帐户上的电子邮件。经过验证,现在一切正常(第一次使用Pusher)。

我刚刚意识到我忘了验证Pusher帐户上的电子邮件。经过验证后,所有设备现在都正常工作(第一次使用推进器)