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

23 lines
734 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,
2019-04-24 04:34:39 +02:00
'company_key' => strtolower(str_random(config('ninja.key_length'))),
'ip' => $faker->ipv4,
'db' => config('database.default'),
'settings' => new CompanySettings(CompanySettings::defaults()),
'address1' => $faker->secondaryAddress,
'address2' => $faker->address,
'city' => $faker->city,
'state' => $faker->state,
'postal_code' => $faker->postcode,
'country_id' => 4,
'work_phone' => $faker->phoneNumber,
'work_email' => $faker->safeEmail,
];
});