userId = $userId; $this->event = $event; $this->notificationId = $notificationId; } /** * Get the channels the event should broadcast on. * * @return array */ public function broadcastOn(): array { return [ new PrivateChannel('user.' . $this->userId), ]; } public function broadcastAs() { return 'event.participation.cancelled'; } }