diff --git a/packages/Webkul/Customer/src/Database/Factories/CustomerAddressFactory.php b/packages/Webkul/Customer/src/Database/Factories/CustomerAddressFactory.php index 5e63b2099..84cc7ddca 100644 --- a/packages/Webkul/Customer/src/Database/Factories/CustomerAddressFactory.php +++ b/packages/Webkul/Customer/src/Database/Factories/CustomerAddressFactory.php @@ -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,