迁移文件代码的代码。语法错误。
Schema::create('subjects', function (Blueprint $table) {$table->bigIncrements('id');
$table->bigIncrements('id');
$table->string('title')->nullable();
$table->integer('order_id')->default('0');
$table->unsignedBigInteger('test_type_id');
$table->foreign('test_type_id')->references('id')->on('test_types');
$table->enum('status',['active','deactive','draft'])->default('draft');
$table->timestamps();
});
已经运行作曲家更新。让我知道我错过了什么。
如果问题是重复的,我很乐意将其删除。
喵喵时光机