mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
23 lines
686 B
PHP
Executable File
23 lines
686 B
PHP
Executable File
<?php
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(Streamline\Models\User::class, function (Faker $faker) {
|
|
|
|
static $password;
|
|
|
|
return [
|
|
'first_name' => $faker->firstName,
|
|
'last_name' => $faker->LastName,
|
|
'username' => $faker->unique()->firstName,
|
|
'phone' => $faker->e164PhoneNumber,
|
|
'email' => $faker->unique()->safeEmail,
|
|
'position_id' => $faker->randomDigitNotNull,
|
|
'blood_group_id' => $faker->randomDigit,
|
|
'photo' => 'placeholder.png',
|
|
'pin' => $faker->randomDigitNotNull,
|
|
'password' => $password ?: $password = bcrypt('secret'),
|
|
'remember_token' => str_random(10),
|
|
];
|
|
});
|