index('item_id'); $table->index('item_type'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('notifications', function (Blueprint $table) { $table->dropIndex('notifications_item_id_index'); $table->dropIndex('notifications_item_type_index'); }); } }