laravel rename table
snippet in php

laravel migration remove column

user5356

public function up()
{
  Schema::table('table', function($table) {
    $table->dropColumn('column_name');
  });
}

laravel rename table

user7035

Schema::rename($currentTableName, $newTableName);

rename table migration laravel

user3419

Schema::rename($from, $to);

laravel create migration

user8588

php artisan make:migration add_votes_to_users_table --table=users

php artisan make:migration create_users_table --create=users

migrations required field laravel

user3985

$table->string('foo')->nullable(false)->change();

how to rename a table element in laravel

user8679

Schema::table('users', function (Blueprint $table) {    $table->renameColumn('from', 'to');});