id(); $table->string('tenant_code'); $table->string('title'); }); DB::table('events')->insert([ ['id' => 1, 'tenant_code' => 'acme', 'title' => 'Gran Fiesta'], ['id' => 2, 'tenant_code' => 'acme', 'title' => 'Gran Fiesta'], ['id' => 3, 'tenant_code' => 'other', 'title' => 'Gran Fiesta'], ['id' => 4, 'tenant_code' => 'acme', 'title' => '---'], ]); $migration = require database_path('migrations/2026_09_22_010000_add_slugs_to_events.php'); $migration->up(); $this->assertSame([ 1 => 'gran-fiesta', 2 => 'gran-fiesta-2', 3 => 'gran-fiesta', 4 => 'evento-4', ], DB::table('events')->orderBy('id')->pluck('slug', 'id')->all()); } }