多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
要移除字段,可在结构生成器内使用 `dropColumn` 方法,请确认在移除前 `composer.json` 文件内已经加入 `doctrine/dbal`。 ## 移除数据表字段 ~~~ Schema::table('users', function($table) { $table->dropColumn('votes'); }); ~~~ ## 移除数据表多个字段 ~~~ Schema::table('users', function($table) { $table->dropColumn(['votes', 'avatar', 'location']); }); ~~~