Laravel - Migrations - Renaming Columns
To rename a column, you may use the renameColumn
method provided by the schema builder blueprint. Before renaming a column, ensure that you have installed the doctrine/dbal
library via the Composer package manager:
Schema::table('users', function (Blueprint $table) {
$table->renameColumn('from', 'to');
});
Renaming an enum
column is not currently supported.