diff --git a/app/Livewire/BoardDispatcher.php b/app/Livewire/BoardDispatcher.php index 10e8a2da..d456c4c1 100644 --- a/app/Livewire/BoardDispatcher.php +++ b/app/Livewire/BoardDispatcher.php @@ -78,11 +78,11 @@ class BoardDispatcher extends Component public function copyResult() { - $copystring = shell_exec("Line One\nLine Two\nLine Three"); + $copystring = `Line One\nLine Two\nLine Three`; // foreach ($this->results as $row) { // $copystring .= "`" . implode("\t", $row) . "\n`"; // } - $this->js("navigator.clipboard.writeText('{$copystring}')"); + $this->js("navigator.clipboard.writeText(`Line One\nLine Two\nLine Three`)"); }