13 lines
303 B
PHP
13 lines
303 B
PHP
|
<?php
|
||
|
|
||
|
$factory->define(App\User::class, function (Faker\Generator $faker) {
|
||
|
static $password;
|
||
|
|
||
|
return [
|
||
|
'name' => $faker->name,
|
||
|
'email' => $faker->safeEmail,
|
||
|
'password' => $password ?: $password = bcrypt('secret'),
|
||
|
'remember_token' => str_random(10),
|
||
|
];
|
||
|
});
|