just use hard-coded hash

This commit is contained in:
Taylor Otwell 2017-12-20 07:49:07 -06:00
parent 4bfb164c26
commit f693a20a3c
1 changed files with 1 additions and 3 deletions

View File

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