increments('id'); $table->string('name'); $table->timestamps(); $table->softDeletes(); }); Schema::create('group_user', function (Blueprint $table) { $table->integer('group_id')->unsigned()->nullable(); $table->integer('user_id')->unsigned()->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('groups'); Schema::drop('group_user'); } }