use an locale from a country in europe so the vat id can be generated

This commit is contained in:
Herbert Maschke 2020-01-22 10:38:35 +01:00
parent 8d1d03d25b
commit 6eacf880a4
1 changed files with 4 additions and 1 deletions

View File

@ -9,13 +9,16 @@ use Webkul\Customer\Models\CustomerAddress;
$factory->define(CustomerAddress::class, function (Faker $faker) {
$now = date("Y-m-d H:i:s");
// use an locale from a country in europe so the vat id can be generated
$fakerIt = \Faker\Factory('it_IT');
return [
'customer_id' => function () {
return factory(Customer::class)->create()->id;
},
'company_name' => $faker->company,
'name' => $faker->name,
'vat_id' => $faker->vat,
'vat_id' => $fakerIt->vat,
'address1' => $faker->streetAddress,
'country' => $faker->countryCode,
'state' => $faker->state,