uuidMorphs("imageable"); }); Schema::table("images", function(Blueprint $table) { DB::table("images")->update(['imageable_id'=>DB::raw('`product_uuid`')], ['imageable_type' => "App\Models\Product"]); $table->dropConstrainedForeignId("product_uuid"); }); } /** * Reverse the migrations. * * @return void */ public function down() { // Ehh don't wanna bother } }