Pusher don't recive my events

Posted 3 years ago by swist


I have event that implements ShouldBroadcast


namespace App\Events;

use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class MessageSent extends Event implements ShouldBroadcast
    use SerializesModels;

    public $message;

     * Create a new event instance.
     * @return void
    public function __construct($message)
        $this->message = $message;

     * Get the channels the event should be broadcast on.
     * @return array
    public function broadcastOn()
        return ['test'];

And in another window i have pusher.com dashboard. They do not recive my events. Total messages sent today = 0. Any idea why?

In .env file I've added keys: PUSHER_KEY=xxx PUSHER_SECRET=xxx PUSHER_APP_ID=xxx

And I've added "pusher/pusher-php-server": "^2.4" to composer.json

Events fires for sure - tested on log driver. Maybe I need to do something on pusher.com dashboard. It's my first pusher project.

Please sign in or create an account to participate in this conversation.