This commit is contained in:
salam committed 2025-09-25 14:37:34 +02:00
1 parent 5f95289079
commit 60249dffd9
37 files changed
+412 -458

No files matched your search

+1 -2
View File
@@ -19,8 +19,7 @@ class KontoFactory extends Factory
return [
'title' => fake()->randomElement(['Architekt:in', 'Ziviltechniker:in']),
'gender' => fake()->randomElement(['Frau', 'Herr']),
'first_name' => fake()->firstName(),
'last_name' => fake()->lastName(),
'name' => fake()->name(),
'company' => fake()->Company(),
'email' => fake()->email(),
'address' => fake()->Address(),
+3
View File
@@ -2,6 +2,7 @@
namespace Database\Factories;
use App\Models\Konto;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
@@ -24,7 +25,9 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'gender' => fake()->randomElement(['Frau', 'Herr']),
'name' => fake()->name(),
'konto_id' => Konto::all()->random()->id,
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),