Skip to content

PHP code snippet – How remove column in migration laravel?

public function up()
{
  Schema::table('table', function($table) {
    $table->dropColumn('column_name');
  });
}
See also  Check if all elements in an array are equal using JavaScript

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.