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  How to make the text vertically centered in CSS?

Leave a Reply

Your email address will not be published.

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