2018-10-29 04:16:17 +01:00
|
|
|
<?php
|
|
|
|
|
2019-02-17 11:34:46 +01:00
|
|
|
use App\DataMapper\ClientSettings;
|
2019-04-24 12:01:40 +02:00
|
|
|
use App\DataMapper\CompanySettings;
|
2018-10-29 04:16:17 +01:00
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
|
|
|
$factory->define(App\Models\Client::class, function (Faker $faker) {
|
2020-07-16 23:50:02 +02:00
|
|
|
|
2018-10-29 04:16:17 +01:00
|
|
|
return [
|
2020-06-18 05:23:24 +02:00
|
|
|
'name' => $faker->company(),
|
2018-10-29 04:16:17 +01:00
|
|
|
'website' => $faker->url,
|
|
|
|
'private_notes' => $faker->text(200),
|
2020-02-24 11:15:30 +01:00
|
|
|
'balance' => 0,
|
|
|
|
'paid_to_date' => 0,
|
2020-07-16 23:50:02 +02:00
|
|
|
'vat_number' => $faker->numberBetween(123456789, 987654321),
|
2020-05-28 02:04:26 +02:00
|
|
|
'id_number' => '',
|
2020-07-16 23:50:02 +02:00
|
|
|
'custom_value1' => '',
|
2020-05-28 02:04:26 +02:00
|
|
|
'custom_value2' => '',
|
|
|
|
'custom_value3' => '',
|
|
|
|
'custom_value4' => '',
|
2018-11-21 09:28:07 +01:00
|
|
|
'address1' => $faker->buildingNumber,
|
|
|
|
'address2' => $faker->streetAddress,
|
|
|
|
'city' => $faker->city,
|
|
|
|
'state' => $faker->state,
|
|
|
|
'postal_code' => $faker->postcode,
|
|
|
|
'country_id' => 4,
|
|
|
|
'shipping_address1' => $faker->buildingNumber,
|
|
|
|
'shipping_address2' => $faker->streetAddress,
|
|
|
|
'shipping_city' => $faker->city,
|
|
|
|
'shipping_state' => $faker->state,
|
|
|
|
'shipping_postal_code' => $faker->postcode,
|
|
|
|
'shipping_country_id' => 4,
|
2019-10-10 12:43:50 +02:00
|
|
|
'settings' => ClientSettings::defaults(),
|
2019-09-26 15:00:51 +02:00
|
|
|
'client_hash' => \Illuminate\Support\Str::random(40),
|
2018-10-29 04:16:17 +01:00
|
|
|
];
|
|
|
|
});
|