src/Console/Commands/PublishCommand.php
/**
     * Execute the console command.
     *
     * @return void
     */
Execute the console command.
@return void
Execute the console command . @return void
public function handle()
    {
        if (!in_array($this->argument('preset'), ['uikit', 'bootstrap'])) {
            $this->error('Invalid argument, valid presets are uikit or bootstrap');
            return;
        }
        $this->call('vendor:publish', [
            '--provider' => "Sowren\Wormhole\WormholeServiceProvider",
            '--tag' => $this->argument('preset') == 'uikit' ? 'wormhole-uikit' : 'wormhole-bootstrap'
        ]);
        $this->info('Preset vue component is published');
    }
public function handle ( ) { if ( ! in_array ( $ this -> argument ( 'preset' ) , [ 'uikit' , 'bootstrap' ] ) ) { $ this -> error ( 'Invalid argument, valid presets are uikit or bootstrap' ) ; return ; } $ this -> call ( 'vendor:publish' , [ '--provider' => " Sowren\Wormhole\WormholeServiceProvider " , '--tag' => $ this -> argument ( 'preset' ) == 'uikit' ? 'wormhole-uikit' : 'wormhole-bootstrap' ] ) ; $ this -> info ( 'Preset vue component is published' ) ; }
Execute the console command.
Execute the console command .