increments('id'); $table->integer('tid')->default(0)->comment('traceId'); $table->integer('gid')->default(0)->comment('物品id'); $table->string('ip')->nullable()->comment('ip地址'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('logs'); } }