-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faker locale configuration does not work. #30345
Comments
Laravel 5.8 is not supported anymore and it works under Laravel 6. You can run Also personally I think all code and database identifier should be in English. |
It's not available in 5.8. It got reverted. #29250 |
But that's for the tests, the seeders should get the faker instance from here. |
Hey there, Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? We'll help you out and re-open this issue if so. Thanks! |
I'm experiencing the same issue on the latest release (6.15.0). |
@Vercoutere this is happening due to the change in #30992 - I can no longer get locale fake data either using the WithFaker trait. |
I was having trouble with faker not respecting the locale value of app.php, turns out there was some stuff cached with the old value. I ran php artisan config:cache and it solved the issue. |
The locale configuration for faker in
config > app.php
does not work.Steps To Reproduce:
Set the locale to config > app.php
Create a model factory (country)
Running the seed
The results are in English:
But if I modify the model factory this way:
The results are displayed in the desired language
The text was updated successfully, but these errors were encountered: