bigIncrements('id'); $table->string('name', 50)->comment('名称'); $table->string('slug', 20)->nullable()->comment('标识'); $table->text('body')->nullable()->comment('内容'); $table->date('date')->comment('内容'); $table->tinyInteger('status')->default(1); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('statistics'); } }