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(),
|
2020-04-11 03:41:43 +02:00
|
|
|
'custom_fields' => (object) [
|
2020-06-17 13:15:24 +02:00
|
|
|
'invoice1' => 'Custom Date|date',
|
2020-04-15 02:30:52 +02:00
|
|
|
// 'invoice2' => '2|switch',
|
|
|
|
// 'invoice3' => '3|',
|
|
|
|
// 'invoice4' => '4',
|
2020-04-11 13:19:05 +02:00
|
|
|
// 'client1'=>'1',
|
|
|
|
// 'client2'=>'2',
|
|
|
|
// 'client3'=>'3|date',
|
|
|
|
// 'client4'=>'4|switch',
|
|
|
|
// 'company1'=>'1|date',
|
|
|
|
// 'company2'=>'2|switch',
|
|
|
|
// 'company3'=>'3',
|
|
|
|
// 'company4'=>'4',
|
2020-04-11 03:41:43 +02:00
|
|
|
],
|
2018-10-22 14:04:37 +02:00
|
|
|
];
|
|
|
|
});
|