message = $message; $this->userId = $userId; } /** * Get the channels the event should be broadcast on. * * @return array */ public function broadcastOn() { return ['user-notification-'.$this->userId]; } }