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  Python code snippet - How to run django in jupyter?

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.