Files
Hickmeister 96561dc3d2
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 2m41s
Remove Amazon filament price tracking
2026-10-11 15:56:13 +01:00

35 lines
758 B
PHP

<?php
namespace Database\Factories;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
/**
* @extends Factory<User>
*/
class UserFactory extends Factory
{
/**
* The current password being used by the factory.
*/
protected static ?string $password;
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'username' => fake()->unique()->userName(),
'email' => fake()->unique()->safeEmail(),
'role' => 'user',
'disabled' => false,
'password' => static::$password ??= Hash::make('password'),
];
}
}