increments('id'); $table->string('logo')->nullable(); $table->string('titile')->nullable()->comment('群名'); $table->text('intro')->nullable()->comment('群介绍'); $table->string('qrcode')->nullable()->comment('群二维码'); $table->string('owner_name')->nullable()->comment('群主'); $table->string('owner_photo')->nullable()->comment('群主头像'); $table->string('owner_wechat')->nullable()->comment('群主微信'); $table->integer('member_num')->default(0)->comment('会员数'); $table->integer('click_num')->default(0)->comment('访问量'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('communities'); } }