Adding faker_locale default config value.

As per [that PR](https://github.com/laravel/framework/pull/17895) and [the documentation](https://laravel.com/docs/5.6/database-testing#writing-factories), I wanted to make sure this was present in the `app/config.php` out of the box.

It's a great thing and I'm sure people will be happy to use it rather than overriding the singleton registration.
This commit is contained in:
Clément Blanco 2018-10-02 15:45:42 +01:00 committed by GitHub
parent 6735b84ccc
commit e9f6ec36a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -92,6 +92,19 @@
*/ */
'fallback_locale' => 'en', 'fallback_locale' => 'en',
/*
|--------------------------------------------------------------------------
| Faker Locale Configuration
|--------------------------------------------------------------------------
|
| The locale set here will be used by the Faker PHP library when it will
| generate localized random data for testing such as a postal address
| or a telephone number. This is the default locale we are setting.
|
*/
'faker_locale' => 'en_US',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------