mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?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),
|
||||
];
|
||||
});
|
||||
Reference in New Issue
Block a user