src/Publisher.php
public function filesToPublish($path)
	{
		$fs = $this->filesystem();
		if( ! $fs->exists($path) && ! $fs->isDirectory($path))
		{
			throw new \InvalidArgumentException("$path set to be published in does not exist.");
		}
		if($fs->isDirectory($path))
		{
			$this->files = $fs->allFiles($path);
		} else
		{
			$this->files = [$path];
		}

		return $this;
	}
public function filesToPublish($path)
	{
		$fs = $this->filesystem();
		if( ! $fs->exists($path) && ! $fs->isDirectory($path))
		{
			throw new \InvalidArgumentException("$path set to be published in does not exist.");
		}
		if($fs->isDirectory($path))
		{
			$this->files = $fs->allFiles($path);
		} else
		{
			$this->files = [$path];
		}

		return $this;
	}
Define what files needs to be published

@param  string $path
@return self