private function publish_packages($packages)
    {
        if (empty($packages)) {
            return;
        }

        foreach ($packages as $package => $directories_to_publish) {
            if (empty($directories_to_publish)) {
                $this->output->writeln("<comment>$package has no files to publish!</comment>");
                continue;
            }

            $this->publish_directories($directories_to_publish);
        }
    }
private function publish_packages($packages)
    {
        if (empty($packages)) {
            return;
        }

        foreach ($packages as $package => $directories_to_publish) {
            if (empty($directories_to_publish)) {
                $this->output->writeln("<comment>$package has no files to publish!</comment>");
                continue;
            }

            $this->publish_directories($directories_to_publish);
        }
    }
private function publish_packages ( $ packages ) { if ( empty ( $ packages ) ) { return ; } foreach ( $ packages as $ package => $ directories_to_publish ) { if ( empty ( $ directories_to_publish ) ) { $ this -> output -> writeln ( "<comment>$package has no files to publish!</comment>" ) ; continue ; } $ this -> publish_directories ( $ directories_to_publish ) ; } }
Loop through all user selected packages, and publish the package files.

@param  array $packages Array of package provider => files to publish.
Loop through all user selected packages and publish the package files .