increments('id'); $table->boolean('type')->default(1)->comment('类型:1-正则表达式、2-域名、3-IP、4-协议'); $table->string('name', 100)->comment('规则描述'); $table->text('pattern')->comment('规则值'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('rule'); } }