tables as $table){ Schema::table($table, function (Blueprint $table) { $table->integer('company_id')->nullable(); }); } Schema::table('tickets_dict_priority', function (Blueprint $table) { $table->string('color')->nullable(); $table->string('icon')->nullable(); }); Schema::table('tickets_dict_severity', function (Blueprint $table) { $table->string('color')->nullable(); $table->string('icon')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { foreach ($this->tables as $table){ Schema::table($table, function (Blueprint $table) { $table->drop('company_id'); }); } Schema::table('tickets_dict_priority', function (Blueprint $table) { $table->dropColumn('color'); $table->dropColumn('icon'); }); Schema::table('tickets_dict_severity', function (Blueprint $table) { $table->dropColumn('color'); $table->dropColumn('icon'); }); } }