ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 移除字段 要移除字段,可在结构生成器内使用 `dropColumn` 方法,请确认在移除前 `composer.json` 文件内已经加入 `doctrine/dbal`。 ## 移除数据表字段 ``` Schema::table('users', function($table) { $table->dropColumn('votes'); }); ``` ## 移除数据表多个字段 ``` Schema::table('users', function($table) { $table->dropColumn(['votes', 'avatar', 'location']); }); ```