use an locale from a country in europe so the vat id can be generated
This commit is contained in:
parent
8d1d03d25b
commit
6eacf880a4
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue