From e9f6ec36a7d1ab8aaae9b392f651fa153e31ceb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Blanco?= Date: Tue, 2 Oct 2018 15:45:42 +0100 Subject: [PATCH] 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. --- config/app.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/app.php b/config/app.php index 056512b2..c1817afb 100644 --- a/config/app.php +++ b/config/app.php @@ -92,6 +92,19 @@ */ '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', /* |--------------------------------------------------------------------------