service->refresh(); } public function deploy() { $this->service->parse(); $activity = StartService::run($this->service); $this->emit('newMonitorActivity', $activity->id); } public function stop(bool $forceCleanup = false) { StopService::run($this->service); $this->service->refresh(); if ($forceCleanup) { $this->emit('success', 'Force cleanup service successfully.'); } else { $this->emit('success', 'Service stopped successfully.'); } $this->emit('checkStatus'); } }