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

+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'),