id(); $table->unsignedBigInteger('user_id'); $table->string('name'); $table->string('group_no')->unique(); $table->string('avatar')->nullable(); $table->string('max_num'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('groups'); } }