fix: ensure all students have @student.ukf.sk emails

This commit is contained in:
2025-11-08 18:02:38 +01:00
parent c360941c10
commit f199317c90

View File

@@ -44,10 +44,14 @@ class DatabaseSeeder extends Seeder
'role' => 'STUDENT'
])
->each(function ($user) use ($admin) {
$user->update([
'email' => fake()->unique()->userName() . '@student.ukf.sk',
]);
StudentData::factory()->create([
'user_id' => $user->id
]);
$internship = Internship::factory()->create([
'user_id' => $user->id,
'company_id' => Company::inRandomOrder()->value('id'),