src/Core/Console/VendorPublishCommand.php
protected function parseChoice($choice)
    {
        list($type, $value) = explode(': ', strip_tags($choice));

        if ($type === 'Provider') {
            $this->provider = $value;
        } elseif ($type === 'Tag') {
            $this->tags = [$value];
        }
    }
protected function parseChoice($choice)
    {
        list($type, $value) = explode(': ', strip_tags($choice));

        if ($type === 'Provider') {
            $this->provider = $value;
        } elseif ($type === 'Tag') {
            $this->tags = [$value];
        }
    }
protected function parseChoice ( $ choice ) { list ( $ type , $ value ) = explode ( ': ' , strip_tags ( $ choice ) ) ; if ( $ type === 'Provider' ) { $ this -> provider = $ value ; } elseif ( $ type === 'Tag' ) { $ this -> tags = [ $ value ] ; } }
Parse the answer that was given via the prompt.

@param string $choice
Parse the answer that was given via the prompt .