rename table column laravel code example
Example 1: laravel migration change column name
Schema::table('users', function (Blueprint $table) {
$table->renameColumn('from', 'to');
});
Example 2: how to rename a table element in laravel
Schema::table('users', function (Blueprint $table) { $table->renameColumn('from', 'to');});