📌  相关文章
📜  laravel 将列添加到表中 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:47.985000             🧑  作者: Mango

代码示例6
// The table method on the Schema facade MAY BE USED TO UPDATE EXISTING TABLES.
// The table method accepts two arguments: the name of the table and a Closure
// that receives a Blueprint instance you may use to add columns to the table:
Schema::table('users', function (Blueprint $table) {
    $table->string('email');
});