public function tableDefintion($table)
    {
        $columnStringArray = [];
        $columns = $this->getTableColumns($table, true);

        foreach ($columns as $key => $column) {
            if ($key === 'id') {
                $column['type'] = 'increments';
            }

            $columnStringArray[] = $key.':'.$this->columnNameCheck($column['type']);
        }

        $columnString = implode(',', $columnStringArray);

        return $columnString;
    }
public function tableDefintion($table)
    {
        $columnStringArray = [];
        $columns = $this->getTableColumns($table, true);

        foreach ($columns as $key => $column) {
            if ($key === 'id') {
                $column['type'] = 'increments';
            }

            $columnStringArray[] = $key.':'.$this->columnNameCheck($column['type']);
        }

        $columnString = implode(',', $columnStringArray);

        return $columnString;
    }
public function tableDefintion ( $ table ) { $ columnStringArray = [ ] ; $ columns = $ this -> getTableColumns ( $ table , true ) ; foreach ( $ columns as $ key => $ column ) { if ( $ key === 'id' ) { $ column [ 'type' ] = 'increments' ; } $ columnStringArray [ ] = $ key . ':' . $ this -> columnNameCheck ( $ column [ 'type' ] ) ; } $ columnString = implode ( ',' , $ columnStringArray ) ; return $ columnString ; }
Table definitions.

@param string $table

@return string
Table definitions .