src/Schema.php
public function columns($table)
    {
        return Cache::remember("{$table}_columns", $this->lifetime(), function () use ($table) {
            $columns = $this->manager->listTableColumns($table);
            $keys = array_keys($columns);
            $vals = array_values($columns);

            $keys = array_map(function ($key) {
                return trim(str_replace(['`', '"'], '', $key));
            }, $keys);

            return array_combine($keys, $vals);
        });
    }
public function columns($table)
    {
        return Cache::remember("{$table}_columns", $this->lifetime(), function () use ($table) {
            $columns = $this->manager->listTableColumns($table);
            $keys = array_keys($columns);
            $vals = array_values($columns);

            $keys = array_map(function ($key) {
                return trim(str_replace(['`', '"'], '', $key));
            }, $keys);

            return array_combine($keys, $vals);
        });
    }
public function columns ( $ table ) { return Cache :: remember ( "{$table}_columns" , $ this -> lifetime ( ) , function ( ) use ( $ table ) { $ columns = $ this -> manager -> listTableColumns ( $ table ) ; $ keys = array_keys ( $ columns ) ; $ vals = array_values ( $ columns ) ; $ keys = array_map ( function ( $ key ) { return trim ( str_replace ( [ '`' , '"' ] , '' , $ key ) ) ; } , $ keys ) ; return array_combine ( $ keys , $ vals ) ; } ) ; }
List table columns.

@param $table

@return \Doctrine\DBAL\Schema\Column[]
List table columns .