1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00
invoiceninja/database/factories/CompanyFactory.php

15 lines
414 B
PHP
Raw Normal View History

<?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(RANDOM_KEY_LENGTH)),
'ip' => $faker->ipv4,
'db' => config('database.default'),
'settings' => new CompanySettings(CompanySettings::defaults()),
];
});