src/BoomCMS/Theme/Commands/Publish.php
public function fire()
    {
        $themes = $this->manager->findAndInstallThemes();

        foreach ($themes as $theme) {
            $directories = [
                $theme->getPublicDirectory()     => public_path('vendor/boomcms/themes/'.$theme->getName()),
                $theme->getMigrationsDirectory() => base_path('migrations/boomcms'),
            ];

            foreach ($directories as $from => $to) {
                if ($this->files->exists($from)) {
                    $this->publishDirectory($from, $to);
                }
            }
        }
    }
public function fire()
    {
        $themes = $this->manager->findAndInstallThemes();

        foreach ($themes as $theme) {
            $directories = [
                $theme->getPublicDirectory()     => public_path('vendor/boomcms/themes/'.$theme->getName()),
                $theme->getMigrationsDirectory() => base_path('migrations/boomcms'),
            ];

            foreach ($directories as $from => $to) {
                if ($this->files->exists($from)) {
                    $this->publishDirectory($from, $to);
                }
            }
        }
    }
public function fire ( ) { $ themes = $ this -> manager -> findAndInstallThemes ( ) ; foreach ( $ themes as $ theme ) { $ directories = [ $ theme -> getPublicDirectory ( ) => public_path ( 'vendor/boomcms/themes/' . $ theme -> getName ( ) ) , $ theme -> getMigrationsDirectory ( ) => base_path ( 'migrations/boomcms' ) , ] ; foreach ( $ directories as $ from => $ to ) { if ( $ this -> files -> exists ( $ from ) ) { $ this -> publishDirectory ( $ from , $ to ) ; } } } }
Publishes migrations and public files for all themes to their respective directories.

The /public directory within all themes is copied to the application's public directory
to make them accessible to the webserver

The migrations directory for all themes is copied to a shared migrations/boomcms directory
from where they can be run together

@return mixed
Publishes migrations and public files for all themes to their respective directories .