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 [
|
2019-10-04 14:37:40 +02:00
|
|
|
//'name' => $faker->name,
|
2019-09-26 15:00:51 +02:00
|
|
|
'company_key' => strtolower(\Illuminate\Support\Str::random(config('ninja.key_length'))),
|
2018-10-24 12:24:09 +02:00
|
|
|
'ip' => $faker->ipv4,
|
|
|
|
'db' => config('database.default'),
|
2019-09-19 07:50:05 +02:00
|
|
|
'settings' => CompanySettings::defaults(),
|
2019-10-04 14:37:40 +02:00
|
|
|
// 'address1' => $faker->secondaryAddress,
|
|
|
|
// 'address2' => $faker->address,
|
|
|
|
// 'city' => $faker->city,
|
|
|
|
// 'state' => $faker->state,
|
|
|
|
// 'postal_code' => $faker->postcode,
|
|
|
|
// 'country_id' => 4,
|
|
|
|
// 'phone' => $faker->phoneNumber,
|
|
|
|
// 'email' => $faker->safeEmail,
|
|
|
|
// 'logo' => 'https://www.invoiceninja.com/wp-content/themes/invoice-ninja/images/logo.png',
|
2018-10-22 14:04:37 +02:00
|
|
|
];
|
|
|
|
});
|