postPlatform->post_id), ]; } public function broadcastWith(): array { $post = $this->postPlatform->post->fresh(); return [ 'post_platform' => [ 'id' => $this->postPlatform->id, 'status' => $this->postPlatform->status->value, 'platform_url' => $this->postPlatform->platform_url, 'error_message' => $this->postPlatform->error_message, 'published_at' => $this->postPlatform->published_at?->toISOString(), ], 'post' => [ 'id' => $post->id, 'status' => $post->status->value, 'published_at' => $post->published_at?->toISOString(), ], ]; } }