2018-10-22 14:04:37 +02:00
|
|
|
<?php
|
|
|
|
|
2019-02-17 11:34:46 +01:00
|
|
|
use App\DataMapper\CompanySettings;
|
2018-10-22 14:04:37 +02:00
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
|
|
|
$factory->define(App\Models\Company::class, function (Faker $faker) {
|
|
|
|
return [
|
|
|
|
'name' => $faker->name,
|
2019-04-24 04:34:39 +02:00
|
|
|
'company_key' => strtolower(str_random(config('ninja.key_length'))),
|
2018-10-24 12:24:09 +02:00
|
|
|
'ip' => $faker->ipv4,
|
|
|
|
'db' => config('database.default'),
|
2019-04-17 08:20:32 +02:00
|
|
|
'settings' => new CompanySettings(CompanySettings::defaults()),
|
2019-08-21 23:46:11 +02:00
|
|
|
'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,
|
2019-09-04 03:45:53 +02:00
|
|
|
'logo' => 'https://www.invoiceninja.com/wp-content/themes/invoice-ninja/images/logo.png',
|
2018-10-22 14:04:37 +02:00
|
|
|
];
|
|
|
|
});
|