|
@@ -12,10 +12,12 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
$factory->define(App\User::class, function (Faker\Generator $faker) {
|
|
$factory->define(App\User::class, function (Faker\Generator $faker) {
|
|
|
|
+ static $password;
|
|
|
|
+
|
|
return [
|
|
return [
|
|
'name' => $faker->name,
|
|
'name' => $faker->name,
|
|
'email' => $faker->safeEmail,
|
|
'email' => $faker->safeEmail,
|
|
- 'password' => bcrypt(str_random(10)),
|
|
|
|
|
|
+ 'password' => $password ?: $password = bcrypt('secret'),
|
|
'remember_token' => str_random(10),
|
|
'remember_token' => str_random(10),
|
|
];
|
|
];
|
|
});
|
|
});
|