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