src/Vendor/Laravel/Artisan/Base.php
public function displayTable($table)
    {
        $headers = $this->makeHeaders($table[0]);

        $rows = [];

        foreach ($table as $row) {
            $rows[] = (array) $row;
        }

        $this->table = $this->getHelperSet()->get('table');

        $this->table->setHeaders($headers)->setRows($rows);

        $this->table->render($this->getOutput());
    }
public function displayTable($table)
    {
        $headers = $this->makeHeaders($table[0]);

        $rows = [];

        foreach ($table as $row) {
            $rows[] = (array) $row;
        }

        $this->table = $this->getHelperSet()->get('table');

        $this->table->setHeaders($headers)->setRows($rows);

        $this->table->render($this->getOutput());
    }
public function displayTable ( $ table ) { $ headers = $ this -> makeHeaders ( $ table [ 0 ] ) ; $ rows = [ ] ; foreach ( $ table as $ row ) { $ rows [ ] = ( array ) $ row ; } $ this -> table = $ this -> getHelperSet ( ) -> get ( 'table' ) ; $ this -> table -> setHeaders ( $ headers ) -> setRows ( $ rows ) ; $ this -> table -> render ( $ this -> getOutput ( ) ) ; }
Display results in table format.

@param $table
Display results in table format .