increments('id'); $table->string('name', 60)->comment('题目名称'); $table->string('options', 60)->comment('题目选项'); $table->string('answers', 60)->comment('题目答案'); $table->boolean('radio')->comment("是否单选"); $table->string('type', 60)->comment('题目类型'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('questions'); } }