public function publishFile($from, $to) { if ($this->filesystem->exists($to) && !$this->option('force')) { throw new FileExistsException(); } $this->filesystem->copy($from, $to); }