how to delete column in migration laravel code example
Example 1: laravel migration remove column
public function up()
{
Schema::table('table', function($table) {
$table->dropColumn('column_name');
});
}
Example 2: Laravel Dropping Columns
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('votes');
});