1public function up()
2{
3 Schema::table('table', function($table) {
4 $table->dropColumn('column_name');
5 });
6}
1// To drop a column, use the dropColumn method on the schema builder.
2// Before dropping columns from a SQLite database, you will need to add
3// the doctrine/dbal dependency to your composer.json file and run the
4// composer update command in your terminal to install the library:
5
6Schema::table('users', function (Blueprint $table) {
7 $table->dropColumn('votes');
8});
1 Schema::table('articles', function($table) {
2 $table->dropColumn('comment_count');
3 $table->dropColumn('view_count');
4 });