yashirq
0
Q:

laravel rename table

public function up()
{
  Schema::table('table', function($table) {
    $table->dropColumn('column_name');
  });
}
1
Schema::rename($currentTableName, $newTableName);
3
php artisan make:migration add_votes_to_users_table --table=users

php artisan make:migration create_users_table --create=users
1
$table->string('foo')->nullable(false)->change();
1
Schema::rename($from, $to);
0

New to Communities?

Join the community