From 9de30a7df1d12bf9fa32500032bcf7c79d3b7bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veronika=20Feh=C3=A9rv=C3=ADziov=C3=A1?= <128744051+VeronikaFeherviziova@users.noreply.github.com> Date: Tue, 2 Dec 2025 19:30:54 +0100 Subject: [PATCH] refactor: improve address generation in Company and Student data factories --- backend/database/factories/CompanyFactory.php | 2 +- backend/database/factories/StudentDataFactory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/database/factories/CompanyFactory.php b/backend/database/factories/CompanyFactory.php index 44b328a..ea8ac44 100644 --- a/backend/database/factories/CompanyFactory.php +++ b/backend/database/factories/CompanyFactory.php @@ -18,7 +18,7 @@ class CompanyFactory extends Factory { return [ 'name' => fake()->company(), - 'address' => fake()->address(), + 'address' => fake()->streetAddress() . ", " . fake()->city() . ", " . fake()->postcode(), 'ico' => fake()->numberBetween(111111, 999999), 'contact' => 0, 'hiring' => fake()->boolean(), diff --git a/backend/database/factories/StudentDataFactory.php b/backend/database/factories/StudentDataFactory.php index 31b910a..64d06cc 100644 --- a/backend/database/factories/StudentDataFactory.php +++ b/backend/database/factories/StudentDataFactory.php @@ -18,7 +18,7 @@ class StudentDataFactory extends Factory { return [ 'user_id' => 0, - 'address' => fake()->address(), + 'address' => fake()->streetAddress() . ", " . fake()->city() . ", " . fake()->postcode(), 'personal_email' => fake()->safeEmail(), 'study_field' => fake()->randomElement(["AI22m", "AI22b"]), ];