Closed al-one closed 3 years ago
\Xethron\MigrationsGenerator\Syntax\Table::run
public function run(array $fields, $table, $connection = null, $method = 'table') { $table = substr($table, strlen(\DB::connection($connection)->getTablePrefix())); $this->table = $table; if (!is_null($connection)) $method = 'connection(\''.$connection.'\')->'.$method; $compiled = $this->compiler->compile($this->getTemplate(), ['table'=>$table,'method'=>$method]); return $this->replaceFieldsWith($this->getItems($fields), $compiled); }
\Xethron\MigrationsGenerator\Syntax\Table::run