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