Faker在不结束的情况下获取文字的情况如何?
在Laravel 9应用程序中,我用Faker设置了文本字段的值:
$this->faker->unique()->text(25);
我看到字段以“。”结尾。 我如何在不结束“”而获得文字。 ?
"laravel/framework": "^9.11",
"fakerphp/faker": "^1.9.1",
谢谢。
When in laravel 9 app I set value for text field with faker :
$this->faker->unique()->text(25);
I see text for field ending with “.”.
How can I get text without ending “.” ?
"laravel/framework": "^9.11",
"fakerphp/faker": "^1.9.1",
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
图书馆的作者决定不实施此功能: https://github.com/fzanininotto/ Faker/essument/1128
您可以做到这样做:
如果您需要完全有25个字符,则可以将其调整为特定符号。
The author of the library decided not to implement this feature: https://github.com/fzaninotto/Faker/issues/1128
You can do it like:
You can adjust this to replace with specific symbol, if you need to have exactly 25 chars.