Exemplo n.º 1
0
 /**
  * Add a column to the definition
  * @param  string    $column     the column name
  * @param  array     $definition optional array of data associated with the column
  * @return  self
  */
 public function addColumn(string $column, array $definition = []) : Table
 {
     $this->data['columns'][$column] = TableColumn::fromArray($column, $definition);
     return $this;
 }