bigIncrements('id'); $table->string('name',50)->unique()->comment('名称'); $table->timestamps(); }); foreach ($this->provinces as $province){ DB::insert(DB::raw("INSERT INTO provinces(name,created_at,updated_at) VALUES(?,?,?)"),[ $province,date("Y-m-d"),date("Y-m-d") ]); } } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('provinces'); } }