protected function display($key, array $data)
    {
        if ($pluck = $this->option('pluck')) {

            if ( ! array_has($data, $pluck)) {
                $this->warn("Nothing to pluck for '{$pluck}'.");
                return;
            }

            $data = array_get($data, $pluck);
        }

        $this->comment($key);
        
        if ($this->option('keys') && is_array($data)) {
            $data = array_keys($data);
        }

        $this->getDumper()->dump($data);

        $this->info('');
    }
protected function display($key, array $data)
    {
        if ($pluck = $this->option('pluck')) {

            if ( ! array_has($data, $pluck)) {
                $this->warn("Nothing to pluck for '{$pluck}'.");
                return;
            }

            $data = array_get($data, $pluck);
        }

        $this->comment($key);
        
        if ($this->option('keys') && is_array($data)) {
            $data = array_keys($data);
        }

        $this->getDumper()->dump($data);

        $this->info('');
    }
protected function display ( $ key , array $ data ) { if ( $ pluck = $ this -> option ( 'pluck' ) ) { if ( ! array_has ( $ data , $ pluck ) ) { $ this -> warn ( "Nothing to pluck for '{$pluck}'." ) ; return ; } $ data = array_get ( $ data , $ pluck ) ; } $ this -> comment ( $ key ) ; if ( $ this -> option ( 'keys' ) && is_array ( $ data ) ) { $ data = array_keys ( $ data ) ; } $ this -> getDumper ( ) -> dump ( $ data ) ; $ this -> info ( '' ) ; }
Displays data in the console for a single information array.

@param string $key   model key or class for display only
@param array  $data
Displays data in the console for a single information array .