Mrt
0
Q:

laravel rename column name

public function up()
{
  Schema::table('table', function($table) {
    $table->dropColumn('column_name');
  });
}
1
Schema::table('users', function (Blueprint $table) {
    $table->renameColumn('from', 'to');
});
0

New to Communities?

Join the community