【发布时间】:2021-02-16 20:23:40
【问题描述】:
如何更改布尔值的默认值
例如,而不是 Yes/No 我想将其更改为 elibrary/evideo
public function up()
{
Schema::create('elibrary', function (Blueprint $table) {
$table->string('lm_ref_no',20)->comment('Learning Material No')->unique();
$table->string('lm_desc',50)->comment('Learning Material Description');
$table->boolean('section_posted')->comment('Section Posted')->default(true);
});
}
【问题讨论】: