Laravelista\LumenVendorPublish\VendorPublishCommand::publishTag PHP Method

publishTag() private method

Publishes the assets for a tag.
private publishTag ( string $tag ) : mixed
$tag string
return mixed
    private function publishTag($tag)
    {
        $paths = ServiceProvider::pathsToPublish($this->option('provider'), $tag);
        if (empty($paths)) {
            return $this->comment("Nothing to publish for tag [{$tag}].");
        }
        foreach ($paths as $from => $to) {
            if ($this->files->isFile($from)) {
                $this->publishFile($from, $to);
            } elseif ($this->files->isDirectory($from)) {
                $this->publishDirectory($from, $to);
            } else {
                $this->error("Can't locate path: <{$from}>");
            }
        }
        $this->info("Publishing complete for tag [{$tag}]!");
    }