gpt4 book ai didi

php - Alice bundle - 如何在 yml 夹具中使用编码密码

转载 作者:行者123 更新时间:2023-12-03 21:20:35 29 4
gpt4 key购买 nike

我使用 hautelook/alice-bundle。

由于以下错误($ in 解释为对对象的引用),我无法在我的装置中使用编码的 bcrypt 密码:

在 SimpleObjectGenerator.php 第 114 行:

生成夹具“实习生”(App\Document\Trainee) 时出错:在生成过程中无法解析值。

App\Document\Trainee:
# template
trainee (template):
firstName: <fr_FR:firstName()>
lastName: <fr_FR:lastName()>
email (unique): <fr_FR:email()>
password : $2y$13$I5uLW8atzRPmC3NcvirYqO2htdMHH1l4uFQ3z0V8wHowO0FqTXl7u
plainPassword: password
birthdate: <date('now')>
address: '@address_tr_*'
phoneNumber: <fr_FR:phoneNumber()>
profileCompleted: false

你知道为什么吗?谢谢你

最佳答案

您可以将散列密码放在参数中,如下所示:

parameters:
hash: $2y$13$I5uLW8atzRPmC3NcvirYqO2htdMHH1l4uFQ3z0V8wHowO0FqTXl7u

App\Document\Trainee:
trainee (template):
password: <{hash}>
...

关于php - Alice bundle - 如何在 yml 夹具中使用编码密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54487000/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com