id()->autoIncrement(); $table->string('name', 255)->nullable(); $table->integer('type_id')->default(0)->index(); $table->string('slug')->nullable()->unique(); $table->tinyInteger('status')->default(1); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('group', function (Blueprint $table) { $table->dropForeign('type_id'); $table->drop(); }); } };