bigIncrements('id'); $table->integer('post_id') ->index('post_id') ->comment('内容id'); $table->string('img', 255) ->default('') ->comment('图片'); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('post_imgs'); } }