athenahr/database/factories/UserFactory.php
miguel456 b89d71b371
Revert "Revert "merge 1""
This reverts commit 0c463d1f10145bf99dd63fd7128f992ab2371ffb.
2022-10-24 01:04:22 +01:00

37 lines
1.0 KiB
PHP
Executable File

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\User>
*/
class UserFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
'uuid' => $this->faker->uuid(),
'name' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail(),
'email_verified_at' => Carbon::now(),
'username' => $this->faker->userName(),
'dob' => Carbon::now(),
'password' => bcrypt($this->faker->password),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
'password_last_updated' => Carbon::now(),
'administratively_locked' => false,
'registrationIp' => $this->faker->ipv4(),
'currentIp' => $this->faker->ipv4(),
];
}
}