Laravelista\LumenVendorPublish\VendorPublishCommand::publishFile PHP Method

publishFile() protected method

Publish the file to the given path.
protected publishFile ( string $from, string $to ) : void
$from string
$to string
return void
    protected function publishFile($from, $to)
    {
        if ($this->files->exists($to) && !$this->option('force')) {
            return;
        }
        $this->createParentDirectory(dirname($to));
        $this->files->copy($from, $to);
        $this->status($from, $to, 'File');
    }