akaunting 3.0 (the last dance)
This commit is contained in:
@ -25,16 +25,18 @@ class Contact extends Factory
|
||||
public function definition()
|
||||
{
|
||||
$types = array_merge($this->getCustomerTypes(), $this->getVendorTypes());
|
||||
$countries = array_keys(trans('countries'));
|
||||
|
||||
return [
|
||||
'company_id' => $this->company->id,
|
||||
'type' => $this->faker->randomElement($types),
|
||||
'name' => $this->faker->name,
|
||||
'email' => $this->faker->unique()->safeEmail,
|
||||
'email' => $this->faker->freeEmail,
|
||||
'user_id' => null,
|
||||
'tax_number' => $this->faker->randomNumber(9),
|
||||
'phone' => $this->faker->phoneNumber,
|
||||
'address' => $this->faker->address,
|
||||
'country' => $this->faker->randomElement($countries),
|
||||
'website' => 'https://akaunting.com',
|
||||
'currency_code' => setting('default.currency'),
|
||||
'reference' => $this->faker->text(5),
|
||||
|
Reference in New Issue
Block a user