id(); // 数据类型 $table->tinyInteger('type')->nullable()->comment('数据类型1课程2自定义事件'); // 日期 $table->date('date')->nullable()->comment('日期'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('calendars'); } };