Skip to content
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

Allow configuration of Faker locale through env #17887

Closed
wants to merge 1 commit into from

Conversation

dwightwatson
Copy link
Contributor

Just a simple change, this just makes it easy to configure the locale for Faker. It's useful when you want your test/seed data to just be a little more relevant to the app it's generated for. If the FAKER_LOCALE environment variable is set then it's all good, otherwise it falls back to the US as it does already.

PR made in reference to: laravel/ideas#398

@GrahamCampbell
Copy link
Member

The env function is not available once config caching has been run.

@GrahamCampbell
Copy link
Member

GrahamCampbell commented Feb 11, 2017

Please submit a new PR that reads the env variable in a config file, and then we can resolve this from the config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants