RenameColumn
class RenameColumn (View source)
Methods
static array
compile(Grammar $grammar, Blueprint $blueprint, Fluent $command, Connection $connection)
Compile a rename column command.
static TableDiff
getRenamedDiff(Grammar $grammar, Blueprint $blueprint, Fluent $command, Column $column, AbstractSchemaManager $schema)
Get a new column instance with the new column name.
static TableDiff
setRenamedColumns(TableDiff $tableDiff, Fluent $command, Column $column)
Set the renamed columns on the table diff.
Details
static array
compile(Grammar $grammar, Blueprint $blueprint, Fluent $command, Connection $connection)
Compile a rename column command.
static protected TableDiff
getRenamedDiff(Grammar $grammar, Blueprint $blueprint, Fluent $command, Column $column, AbstractSchemaManager $schema)
Get a new column instance with the new column name.
static protected TableDiff
setRenamedColumns(TableDiff $tableDiff, Fluent $command, Column $column)
Set the renamed columns on the table diff.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.