mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-06 03:02:34 +01:00
74a6c4f2ee
* Performance improvements moving from str_replace to strtr * Remove legacy docs * Clean up credit transformer * Working on invoice emails * Clean up for invoice designs * Tests for light and dark theme emails * Working on reminder scheduling * Reminder Job Class * Fixes for github actions * PHP CS * Test for reminders * Test for reminders
29 lines
896 B
PHP
29 lines
896 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(\Illuminate\Support\Str::random(config('ninja.key_length'))),
|
|
'ip' => $faker->ipv4,
|
|
'db' => config('database.default'),
|
|
'settings' => CompanySettings::defaults(),
|
|
'custom_fields' => (object) [
|
|
'invoice1' => '1|date',
|
|
// 'invoice2' => '2|switch',
|
|
// 'invoice3' => '3|',
|
|
// 'invoice4' => '4',
|
|
// 'client1'=>'1',
|
|
// 'client2'=>'2',
|
|
// 'client3'=>'3|date',
|
|
// 'client4'=>'4|switch',
|
|
// 'company1'=>'1|date',
|
|
// 'company2'=>'2|switch',
|
|
// 'company3'=>'3',
|
|
// 'company4'=>'4',
|
|
],
|
|
];
|
|
});
|