activity = Activity::query() ->find($this->activityId); } public function newMonitorActivity($activityId) { $this->activityId = $activityId; $this->hydrateActivity(); $this->isPollingActive = true; } public function polling() { $this->hydrateActivity(); if (data_get($this->activity, 'properties.exitCode') !== null) { $this->isPollingActive = false; } } public function render() { return view('livewire.activity-monitor'); } }