Remove Faker usage from seeders

This commit is contained in:
2026-06-03 06:50:21 +05:00
parent 177c316b44
commit 932b37c7f6
4 changed files with 134 additions and 69 deletions
+4 -4
View File
@@ -42,9 +42,9 @@ class UserSeeder extends Seeder
);
$technicians = [
['name' => 'Иван Петров', 'email' => 'tech1@service.local'],
['name' => 'Алексей Сидоров', 'email' => 'tech2@service.local'],
['name' => 'Ольга Смирнова', 'email' => 'tech3@service.local'],
['name' => 'Иван Петров', 'email' => 'tech1@service.local', 'phone' => '+79990000101'],
['name' => 'Алексей Сидоров', 'email' => 'tech2@service.local', 'phone' => '+79990000102'],
['name' => 'Ольга Смирнова', 'email' => 'tech3@service.local', 'phone' => '+79990000103'],
];
foreach ($technicians as $technician) {
@@ -54,7 +54,7 @@ class UserSeeder extends Seeder
'name' => $technician['name'],
'password' => Hash::make('password'),
'role' => UserRole::TECHNICIAN,
'phone' => '+7999'.fake()->numerify('######'),
'phone' => $technician['phone'],
'department_id' => $serviceDepartment?->id,
'is_active' => true,
'email_verified_at' => now(),