2023-03-21 19:54:30 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
2023-03-23 21:50:31 +01:00
|
|
|
use Faker\Core\Number;
|
2023-03-21 19:54:30 +01:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\User>
|
|
|
|
*/
|
|
|
|
class UserFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*
|
|
|
|
* @return array<string, mixed>
|
|
|
|
*/
|
|
|
|
public function definition(): array
|
|
|
|
{
|
|
|
|
return [
|
2023-03-24 14:11:09 +01:00
|
|
|
'rz_username' => 'rzu12345',
|
|
|
|
'full_name' => $this->faker->name(),
|
|
|
|
'organisation_unit' => $this->faker->company(),
|
|
|
|
'has_admin_privileges' => false,
|
2023-03-23 21:50:31 +01:00
|
|
|
'hashed_password' => 'vollgeheim', // password
|
2023-03-21 19:54:30 +01:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|