mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
36 lines
1.3 KiB
PHP
36 lines
1.3 KiB
PHP
<?php
|
|
|
|
use App\DataMapper\ClientSettings;
|
|
use App\DataMapper\CompanySettings;
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(App\Models\Client::class, function (Faker $faker) {
|
|
return [
|
|
'name' => $faker->name(),
|
|
'website' => $faker->url,
|
|
'private_notes' => $faker->text(200),
|
|
'balance' => $faker->numberBetween(0,1000),
|
|
'paid_to_date' => $faker->numberBetween(0,10000),
|
|
'vat_number' => $faker->text(25),
|
|
'id_number' => $faker->text(20),
|
|
'custom_value1' => $faker->text(20),
|
|
'custom_value2' => $faker->text(20),
|
|
'payment_terms' => 1,
|
|
'address1' => $faker->buildingNumber,
|
|
'address2' => $faker->streetAddress,
|
|
'city' => $faker->city,
|
|
'state' => $faker->state,
|
|
'postal_code' => $faker->postcode,
|
|
'currency_id' => 1,
|
|
'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,
|
|
'settings' => new ClientSettings(ClientSettings::defaults()),
|
|
'client_hash' => \Illuminate\Support\Str::random(40),
|
|
];
|
|
});
|