This is the code to create the password using the bcrypt .how to add salt ?
public function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
]);
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire