move($path.'public', path('public').'bundles'.DS.$bundle); echo "Assets published for bundle [$bundle].".PHP_EOL; } /** * Copy the contents of a bundle's assets to the public folder. * * @param string $source * @param string $destination * @return void */ protected function move($source, $destination) { File::cpdir($source, $destination); } /** * Get the "to" location of the bundle's assets. * * @param string $bundle * @return string */ protected function to($bundle) { return path('public').'bundles'.DS.$bundle.DS; } /** * Get the "from" location of the bundle's assets. * * @param string $bundle * @return string */ protected function from($bundle) { return Bundle::path($bundle).'public'; } }