mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
24 lines
832 B
PHP
24 lines
832 B
PHP
<?php
|
|
|
|
use App\DataMapper\CompanySettings;
|
|
use Faker\Generator as Faker;
|
|
|
|
$factory->define(App\Models\Company::class, function (Faker $faker) {
|
|
return [
|
|
'name' => $faker->name,
|
|
'company_key' => strtolower(str_random(config('ninja.key_length'))),
|
|
'ip' => $faker->ipv4,
|
|
'db' => config('database.default'),
|
|
'settings' => new CompanySettings(CompanySettings::defaults()),
|
|
'address1' => $faker->secondaryAddress,
|
|
'address2' => $faker->address,
|
|
'city' => $faker->city,
|
|
'state' => $faker->state,
|
|
'postal_code' => $faker->postcode,
|
|
'country_id' => 4,
|
|
'work_phone' => $faker->phoneNumber,
|
|
'work_email' => $faker->safeEmail,
|
|
'logo' => 'https://www.invoiceninja.com/wp-content/themes/invoice-ninja/images/logo.png',
|
|
];
|
|
});
|