mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
15 lines
423 B
PHP
15 lines
423 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()),
|
|
];
|
|
});
|