Level 102
Is your queue running?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi i make a simple event and call that event but Pusher debug console does not show anything here it is my event
<?php
namespace App\Evenets;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class MyEvent implements ShouldBroadcast
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $message;
public function __construct($message)
{
$this->message = $message;
}
public function broadcastOn()
{
return ['student-notification'];
}
public function broadcastAs()
{
return 'student-notification-event';
}
}
here .env pusher
BROADCAST_DRIVER=pusher
PUSHER_APP_ID=1459312
PUSHER_APP_KEY=f79f6e1a7efa759a16c3
PUSHER_APP_SECRET=8a676c825e5861236977
PUSHER_APP_CLUSTER=ap2
also uncomment EventServiceProvider in app.php here call event in call back route
Route::get('event',function(){
event(new MyEvent('hello world'));
});
Thanks for any help
@umerfayyaz that's probably why then. Events run on the queue
https://laravel.com/docs/9.x/broadcasting#queue-configuration
Please or to participate in this conversation.