outputs .= $output; } public function instantSave() { } public function getLogs($refresh = false) { if ($this->container) { $sshCommand = generateSshCommand($this->server, "docker logs -n {$this->numberOfLines} -t {$this->container}"); if ($refresh) { $this->outputs = ''; } Process::run($sshCommand, function (string $type, string $output) { $this->doSomethingWithThisChunkOfOutput($output); }); } } public function render() { return view('livewire.project.shared.get-logs'); } }