Commit 83ffbc65 authored by Duilio Palacios's avatar Duilio Palacios

Using the bcrypt function in users generated by the model factory

parent e3f18ea5
......@@ -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),
];
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment