public function publish($plugins = null)
    {
        $plugins = $this->gatherLoadedPackagesHandles($plugins);
        foreach ($plugins as $plugin) {
            // Find the plugin's configuration
            $paths = $this->findPackageConfiguration($plugin);

            // Cancel if no valid paths
            $paths = array_filter($paths, [$this->files, 'isDirectory']);
            $paths = array_values($paths);
            if (empty($paths)) {
                $this->explainer->comment('No configuration found for '.$plugin);
                continue;
            }

            $this->publishConfiguration($paths[0]);
        }
    }