increments('id'); $table->integer('merchant_id')->unsigned()->comment('merchant_id'); $table->string('desc', 255)->comment('日志描述'); $table->string('ip', 30)->comment('IP地址'); $table->string('url', 150)->comment('操作地址'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('merchant_logs'); } }