Merge pull request #3456 from sileence/bcrypt_password_factory
Using the bcrypt function in users generated by the model factory
This commit is contained in:
@@ -15,7 +15,7 @@ $factory->define(App\User::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'name' => $faker->name,
|
||||
'email' => $faker->email,
|
||||
'password' => str_random(10),
|
||||
'password' => bcrypt(str_random(10)),
|
||||
'remember_token' => str_random(10),
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user