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}]!");
}