integer('parent_id')->default(0); }); Schema::table('revenues', function (Blueprint $table) { $table->integer('parent_id')->default(0); }); Schema::table('bills', function (Blueprint $table) { $table->integer('parent_id')->default(0); }); Schema::table('payments', function (Blueprint $table) { $table->integer('parent_id')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('invoices', function (Blueprint $table) { $table->dropColumn('parent_id'); }); Schema::table('revenues', function (Blueprint $table) { $table->dropColumn('parent_id'); }); Schema::table('bills', function (Blueprint $table) { $table->dropColumn('parent_id'); }); Schema::table('payments', function (Blueprint $table) { $table->dropColumn('parent_id'); }); } }