order = $order; } /** * Get the channels the event should broadcast on. * * @return array */ public function broadcastOn(): array { return [ new PrivateChannel('tenant.' . $this->order->tenant_id), ]; } public function broadcastAs(): string { return 'order.canceled'; } public function broadcastWith(): array { return [ 'id' => $this->order->uuid, 'outlet_id' => $this->order->outlet_id, 'updated_at' => $this->order->updated_at->toDateTimeString() ]; } }