src/Commands/PublishCommand.php
public function publish($name)
    {
        if ($name instanceof Module) {
            $module = $name;
        } else {
            $module = $this->laravel['modules']->findOrFail($name);
        }

        with(new AssetPublisher($module))
            ->setRepository($this->laravel['modules'])
            ->setConsole($this)
            ->publish();

        $this->line("<info>Published</info>: {$module->getStudlyName()}");
    }
public function publish($name)
    {
        if ($name instanceof Module) {
            $module = $name;
        } else {
            $module = $this->laravel['modules']->findOrFail($name);
        }

        with(new AssetPublisher($module))
            ->setRepository($this->laravel['modules'])
            ->setConsole($this)
            ->publish();

        $this->line("<info>Published</info>: {$module->getStudlyName()}");
    }
public function publish ( $ name ) { if ( $ name instanceof Module ) { $ module = $ name ; } else { $ module = $ this -> laravel [ 'modules' ] -> findOrFail ( $ name ) ; } with ( new AssetPublisher ( $ module ) ) -> setRepository ( $ this -> laravel [ 'modules' ] ) -> setConsole ( $ this ) -> publish ( ) ; $ this -> line ( "<info>Published</info>: {$module->getStudlyName()}" ) ; }
Publish assets from the specified module.

@param string $name
Publish assets from the specified module .